How to send mail with an image as an attachment in android?
In my android application i need to send the mail with an image as a attachment.I am done with the sending the mail.but how to send the mail with an image as a attachment to the mail.Here i am posting the code for the sending the mail.Please help me to send the image as an attachment in following code. Here is the code- public class MailImageFile extends javax.mail.Authenticator { public MailImageFile(){} public void Mail(String user, String pass) { Properties props = new Properties(); props.put("mail.smtp.host", "smtp.gmail.com"); props.put("mail.smtp.socketFactory.port", "465"); props.put(