|
-
Mar 24th, 2007, 03:12 AM
#1
Thread Starter
New Member
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
-
Mar 26th, 2007, 04:25 PM
#2
Addicted Member
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.
-
Mar 27th, 2007, 03:16 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|