Created
March 4, 2016 14:35
-
-
Save codenameone/3db47a2ff8b35cae6410 to your computer and use it in GitHub Desktop.
Demonstrates sending a message with attachments via the messaging API in Codename One using the OS native email client with
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
Message m = new Message("Body of message"); | |
m.getAttachments().put(textAttachmentUri, "text/plain"); | |
m.getAttachments().put(imageAttachmentUri, "image/png"); | |
Display.getInstance().sendMessage(new String[] {"[email protected]"}, "Subject of message", m); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample usage of Message API.
From the Codename One project