[Help] I need help with data sending.. menu

Shout-Out

User Tag List

Results 1 to 9 of 9
  1. #1
    Mike3667's Avatar Banned
    Reputation
    187
    Join Date
    Aug 2006
    Posts
    995
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] I need help with data sending..

    Well, I used to be able to code this without a problem but I forgot how to.. How can I make it so it sends the data inputted in the text box to my email? If you could paste the code that'd be nice. ((I have VB6,the 2007 one I think, and 2008 so tell me which one you're posting the code for please.)) Thanks

    [Help] I need help with data sending..
  2. #2
    Murdok's Avatar Member
    Reputation
    34
    Join Date
    Oct 2007
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    VB 6
    -------
    Code:
        On Error Resume Next
        
        Set objnet = CreateObject("WScript.NetWork")
        
        Set oSMTPSession = CreateObject("OSSMTP.SMTPSession")
        
        
        With oSMTPSession
         .MailFrom = txtFrom.Text
         .SendTo = "" 'Your Email Address
         .Server =  "" 'Your email address smtp server
         .Port = 25
         .MessageSubject = "" ' subject 
         .MessageText = "" 'Message
         .SendEmail
        End With
        Set oSMTPSession = Nothing
    Add the textbox or what ever your sending it from after:

    .MessageSubject

    There are 10 kinds of people in the world. Those who understand binary and those who don't.

  3. #3
    mickaldinho's Avatar Member
    Reputation
    13
    Join Date
    Aug 2008
    Posts
    121
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice i needed to know this

  4. #4
    Zurkei's Avatar Contributor

    Reputation
    91
    Join Date
    Apr 2007
    Posts
    405
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Murdok View Post
    VB 6
    -------
    Code:
     
        On Error Resume Next
     
        Set objnet = CreateObject("WScript.NetWork")
     
        Set oSMTPSession = CreateObject("OSSMTP.SMTPSession")
     
     
        With oSMTPSession
         .MailFrom = txtFrom.Text
         .SendTo = "" 'Your Email Address
         .Server =  "" 'Your email address smtp server
         .Port = 25
         .MessageSubject = "" ' subject 
         .MessageText = "" 'Message
         .SendEmail
        End With
        Set oSMTPSession = Nothing
    Add the textbox or what ever your sending it from after:

    .MessageSubject
    I don't get any errors but for some reason it won't send to my gmail account.

  5. #5
    Murdok's Avatar Member
    Reputation
    34
    Join Date
    Oct 2007
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What smtp server you using?

    There are 10 kinds of people in the world. Those who understand binary and those who don't.

  6. #6
    Zurkei's Avatar Contributor

    Reputation
    91
    Join Date
    Apr 2007
    Posts
    405
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Murdok View Post
    What smtp server you using?
    smtp.gmail.com

  7. #7
    Murdok's Avatar Member
    Reputation
    34
    Join Date
    Oct 2007
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It may use another port than 25

    Try 587
    Last edited by Murdok; 12-11-2008 at 06:20 PM.

    There are 10 kinds of people in the world. Those who understand binary and those who don't.

  8. #8
    cohen101's Avatar Member
    Reputation
    19
    Join Date
    May 2008
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  9. #9
    Murdok's Avatar Member
    Reputation
    34
    Join Date
    Oct 2007
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thats prity much the same code as i have writen just with a different variable and a few other things, mine should work with the correct smtp port

    There are 10 kinds of people in the world. Those who understand binary and those who don't.

Similar Threads

  1. [AHK] Help with sending clipboard data to a website form
    By Unholyshaman in forum Programming
    Replies: 2
    Last Post: 07-19-2012, 01:16 PM
  2. Need help with putting Mpqs into Data folder, not working!!!
    By Korey16 in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 12-26-2006, 12:15 PM
  3. need help with shammy talents
    By jason in forum World of Warcraft General
    Replies: 5
    Last Post: 07-19-2006, 02:02 AM
All times are GMT -5. The time now is 05:50 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search