
Winsock Email (don't laugh)
Quote:
>This is a multi-part message in MIME format.
>------=_NextPart_000_0074_01C0C734.18562720
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>As some of you may laugh about, I am using the puny winsock control to =
>make an email client. What I want to know is, how can I add a "file =
>attachment" capability?
>--=20
>---------------------
>mushhead
>---------------------
All data sent in email must be text, not binary. As a result,
attachments are sent by using one of a number of encoding schemes (the
Apple BinHex is one of the most common) to torn the file into a text
string. This is added to the body of the email. The email clients
automatically identify this encoded attachment and hide it when you
are viewing the body of an email message.
You have do write the encoding routine for this yourself. unless you
want to use one of the SMTP controls such as the free one from
http://axsoft.hypermart.net
I would recommend you get this and try it to see how it works. It is
extremely easy to use.
There is also the more complicated, but probably much more powerful
solution from
http://www.swynk.com/friends/lesandrini/jmailvbs.asp