Page 1 of 1

Send mail attachment

Posted: Mon Jan 23, 2012 8:53 am
by bggnet
Using the example SendMailAttachmentEFFS - I'm trying to send a text file from the SD card. "Almost" works... but I had to change the MIME to CONTENT_TYPE_PLAIN_TEXT_ATTACH from Binary and remove the Base64encode call. The problem is the attachment has extra data at the end of the attachment that shouldn't be there. It's not always the same data but close: "-------====================102==_--"
When I add up the number of bytes written by the writeall function it adds up correctly to 699 bytes. I'm seeing 735 or 736 bytes for the actual attachment when received. Any ideas?

Thanks