Azure Serverless Computing Cookbook
上QQ阅读APP看书,第一时间看更新

There's more...

You can also send HTML content in the body to make your email more attractive. The following is a simple example, where I just applied bold (<b>) tag to the name of the end user:

message.From = new Email("donotreply@example.com");
message.AddContent(new Content("text/html","Thank you <b>" + firstname + " " + lastname +"</b> so much for getting registered to our site."));

Personalization personalization = new Personalization();

The following is the screenshot of the email with my name in bold: