Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created March 4, 2016 13:13
Show Gist options
  • Save codenameone/8229c1d4627ab3a1f17e to your computer and use it in GitHub Desktop.
Save codenameone/8229c1d4627ab3a1f17e to your computer and use it in GitHub Desktop.
Send an email via the Codename One cloud directly from the device
Message m = new Message("<html><body>Check out <a href=\"https://www.codenameone.com/\">Codename One</a></body></html>");
m.setMimeType(Message.MIME_HTML);
// notice that we provide a plain text alternative as well in the send method
boolean success = m.sendMessageViaCloudSync("Codename One", "[email protected]", "Name Of User", "Message Subject",
"Check out Codename One at https://www.codenameone.com/");
@codenameone
Copy link
Author

Sample usage of Message API.

From the Codename One project

@HamdiMegdiche
Copy link

HamdiMegdiche commented Apr 27, 2018

mime_html not working since 2016 !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment