Hi, I searched with those specific keywords you both had indicated in your mail= s and I did find some documentation. Thanks for the help. I shall try to re= ad them. Sai ________________________________ From: Jan-Erik Soderholm To: Microcontroller discussion list - Public. Sent: Tuesday, July 26, 2011 3:52 AM Subject: Re: [PIC]:Sending attachments with PIC Ethernet stack Lee Jones wrote 2011-07-26 12:38: >> I apologize if I am asking that is something that is obvious. I wanted >> to transfer pictures from a memory card to an SMTP server as an email >> attachment? I would like to do it with PIC's ethernet stack. I searched >> with different keywords but I was not able to find relevant documentatio= n. >> Is there a way to mail pictures as email attachment to an SMTP server? > > yes. > > Format of the mail message, including how to encode the binary data > in the photo, is described by the MIME specification with BASE64 as > the encoding. > > You'll also need the SMTP protocol to transfer your MIME format > message(s) to the SMTP server. > > And you'll need a TCP transport layer as an underlying component > of the SMTP transfers. > > Good luck. > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 Lee Jones > There are also simpler encodings available then MIME. Most mail clients will correctly decode and display an attached UUENCODED file. That is much simpler. And you can either use a complete SMTP interface or run it yourself by simply opening port 25 on the server and running the (quite simple) protocol yourself. To save storage space, the UUENCODE could be done on the fly on parts of the file at a time. The below was just sent from one of my system and read by my Thunderbird client. The "show source" shows something like (some lines deleted). The [uuencode header] is "begin 750 zif40_1.jpg", if left in place it would probably mess upp *this* post... Full MIME encodin is *much* more complex ! Jan-Erik. --------------------------------------------------------------- From: system@jescab2.dyndns.org To: jan-erik.soderholm@telia.com Subject: JPG [uuencode header] M_]C_X``02D9)1@`!`0$`8`!@``#__@`F0W)E871E9"!B>2!);6%G94=3DE87(L M($%C8W53;V9T($-O`:G"/(VX`;1;QW()6J8@9AW(+&#NG\'_ "V0IL ` end --------------------------------------------------------------- --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .