Results 1 to 3 of 3

Thread: Socket Help Needed Really Badly

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    10

    Socket Help Needed Really Badly

    guys is there a way to send files through gmail smtp in vb ??? if so can anyone please post its code?? i searched around for it alot but the ones i found doesnt work at all , can you guys please help

  2. #2
    Addicted Member
    Join Date
    Mar 2007
    Posts
    203

    Re: Socket Help Needed Really Badly

    MAPISession1.SignOn
    MAPIMessages1.SessionID = MAPISession1.SessionID
    MAPIMessages1.MsgIndex = -1
    MAPIMessages1.Compose
    MAPIMessages1.Send True
    MAPISession1.SignOff

    It has been awhile since I used email in vb but this is the code I used to load my default email client into a vb program. I'm not real sure how gmail works but it would seem that if you have gmail set as your default email client then the above code should load it. The above code is for sending emails only.

  3. #3
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Socket Help Needed Really Badly

    Been awhile since I've done SMTP/e-mail. Does gmail use a non-standard SMTP server?

    I tried pinging: smtp.gmail.com and it worked, but connecting to it on port 25 (default SMTP port) failed.

    Same results for: smtp.google.com.

    The ideal way is to do an MX lookup on the domain (google.com or gmail.com), get a list of SMTP servers and connect to those servers directly to send e-mail.

    Here are some search results for looking up MX records:
    http://www.pscode.com/vb/scripts/Bro...1=Quick+Search

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width