Created
July 5, 2016 05:12
-
-
Save marchbold/d78b0a06b1ee10c73c3c900a19651b09 to your computer and use it in GitHub Desktop.
Sending an Email using the Message ANE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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