Question : Send Email From VB6

Hello,

How can I send a standard SMTP email message (no attachments) from a VB6 application?

Caveats
* Cannot use any third part solutions (ActiveX, DLLs etc.).  A native VB6 email function library would be OK though.
* Must be native to VB6.
* Must work on Windows 2003 servers and Windows XP.

I have scoured many Google listed sights and have not found anything that meets the about criteria yet.  
Perhaps I can use the MAPI controls, but I just need to send a simple email (not explicitly interfacing to an Exchange server).

I have a DOS tool that uses mailsend.exe from muquit.com.  It only requires the SMTP server IP and email address.  I was hoping for a native VB6 solution that would be this easy in VB6 too but not sure what the code would look like.


Thanks,

Michael

Answer : Send Email From VB6

http://www.freevbcode.com/ShowCode.Asp?ID=109

Download the zip and use the classes of the vbSendMail in your own vb-app


Random Solutions  
 
programming4us programming4us