
Email from VB4 to the Internet
Quote:
>Hi.
>I want to send mail over the Internet from some of my VB4 programs,
> (via Trumpet WinSock, if that's relevant). From what I understand of
> MAPI, it applies only to LAN email, and so is not quite what I want.
Not exactly true. MAPI uses "Service Providers" that handle getting
the mail to their destination via different methods. If you use
Microsoft Exchange (a MAPI based application) and have the Internet
Explorer installed (which adds an SMTP service provider) you can send
Internet mail from Exchange and therefore from the MAPI control.
It does work, but it has bugs. Attachments don't get UU encoded
correctly for example but if you're using Windows 95 and just need to
send text messages via the Internet, MAPI should do the trick.
On the other hand, writing a program to talk to an SMTP server with
VB4 is really quite easy. There are plenty of VBXes and OCXes around
that will allow you to talk to WinSock or you can hunt around for the
Mabry Mail OCX which encapsulates both the SMTP protocol and the
WinSock interface.
Regards,
Rod