MrEngineer13 MrEngineer13 - 4 months ago 7
Android Question

Sending HTML E-mails with Attachment for Android

I'm trying to use this solution but Eclipse still cant resolve "Attachment" and "DataService".

I've imported mail.jar and activation.jar, what could I be doing wrong? I've tried countless other sending email solutions on SO/Google but I couldn't get any of them to work with my attachment and send HTML emails.

Any help would be appreciated.

Answer

I used this tutorial and changed

    messageBodyPart.setText(_body); 

to

    messageBodyPart.setContent(_body, "text/html");
Comments