Winsock Email (don't laugh) 
Author Message
 Winsock Email (don't laugh)

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?
--
---------------------
mushhead
---------------------



Sat, 04 Oct 2003 23:46:52 GMT  
 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



Mon, 06 Oct 2003 07:52:33 GMT  
 Winsock Email (don't laugh)

Thanks!  That's a really cool control!
--
---------------------
mushhead (name changed to protect innocent parties :o)
---------------------


  >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



Mon, 06 Oct 2003 09:42:30 GMT  
 Winsock Email (don't laugh)


Quote:
>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?

Here's a link to a site that should be of help to you:

http://vbsquare.com/articles/sendmail/index3.html  Sendmail with
Attachments.

As an alternative to the winsock control we offer a freeware control
called SocketWrench which can be used to create both client and server
applications including e-mail clients.  We also offer a MIME and SMTP
control as part of our commercial SocketTools Visual Edition package.
Please see the following SocketTip from our website demonstrating the
use of these controls:

http://www.catalyst.com/support/tips/tip12.html  Attaching Files to
E-mail Messages

The SocketWrench package as well as an evaluation copy of SocketTools
can be downloaded at http://www.catalyst.com

David



Tue, 07 Oct 2003 23:40:32 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Please don't laugh I'm sincere

2. Please don't laugh...

3. Please Don't Laugh!

4. Please Don't Laugh!

5. Ok Ok Don't laugh :)

6. Don't laugh at that one

7. Make sure emails don't send automatically

8. Sending HTML formatted email - images don't get embedded

9. Why don't macro buttons transfer in email

10. Don't Reply - Testing a NoSpam email address

11. Winsock don't get connected!

12. Art and all that Jazz: let's laugh about the shallow cafes, but don't like the humble barbers

 

 
Powered by phpBB® Forum Software