I have the following code:
dev = "email@gmail.com";
dev_p = "password";
subject = "Thank you for signing up to the company auditing app";
body = "<!DOCTYPE html><body>To " + username + ",\nThank you for signing up to the company auditing application.\nYou can login to your account via our website <a href='http://www.companyauditingapp.com/'>here</a>.\n Regards,\nThe Team</body></html>";
Spanned html = Html.fromHtml(body);
try{
GMailSender sender = new GMailSender(dev, dev_p);
sender.sendMail(subject,html,dev,emailadd);
} catch (Exception e) {
Log.e("SendMail", e.getMessage(), e);
}
I want to be able to send html via the sendMail method, in eclipse it keeps asking me to change the method parameter - strings html/body to a spanned string.
Can anyone suggest a solution to this problem?
Thanks in advance
Chris