Send mail attachment

Discussion to talk about software related topics only.
Post Reply
bggnet
Posts: 2
Joined: Mon Jan 23, 2012 8:22 am

Send mail attachment

Post 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
Post Reply