Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save marchbold/d78b0a06b1ee10c73c3c900a19651b09 to your computer and use it in GitHub Desktop.

Select an option

Save marchbold/d78b0a06b1ee10c73c3c900a19651b09 to your computer and use it in GitHub Desktop.
Sending an Email using the Message ANE
if (Message.isMailSupported)
{
var email:String = "emailaddress@test.com";
var subject:String = "Sending HTML email from AIR using the distriqt Message ANE";
var body:String =
"<div>"+
"<p>This HTML email was sent using the distriqt <b>Message ANE</b></p>"+
"A link: <a href='http://airnativeextensions.com'>airnativeextensions.com</a>"+
"<br/>" +
"Block: <blockquote>Some quote</blockquote>"+
"<br/>" +
"Bold: <b>This text should be bold</b>"+
"<br/>" +
"Italic: <i>This text should be italic</i>"+
"<br/>" +
"Colour: <font color='#ff0000'>This text should be red</font>"+
"<div/>" ;
Message.service.sendMailWithOptions(
subject,
body,
email,
"",
"",
[],
true
);
}
// com.distriqt.Message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment