I am trying to send an email from my Android app
public void SubmitInfo(object sender, EventArgs e)
{
StringBuilder htmlBodyMail = new StringBuilder();
htmlBodyMail.AppendLine("Hello from XYZ Application!" + "\n\n" +
"<b>Address:</b> " + App.Address + "\n\n" +
"<b>DataTime:</b> " + App.DataTime + "\n\n" +
"<b>GPS:</b> " + App.Latitude + ", " + App.Longitude);
var emailTask = CrossMessaging.Current.EmailMessenger;
if (emailTask.CanSendEmail)
{
var email = new EmailMessageBuilder()
.To("xxx@xxx.com")
.Subject("XYZ Application")
.BodyAsHtml(htmlBodyMail.ToString())
.WithAttachment(App._file.AbsoluteFile)
.Build();
emailTask.SendEmail(email);
}
}
However when I receive the message in the email, there are no Bolds or end of Lines as coded into the html string. What am I doing wrong here?
` and `` with ``? – LS_ Nov 23 '17 at 09:17