Can anyone tell me how to send an email in an CDC application?
Sorry for the slow reply. I was hoping someone had direct experience with this. Here's what I know:
The Java SE javax.mail package is not part of CDC, FP, PP or PBP so it won't be present on most CDC-based systems. Also, sending SMS is not an option for the same reason.
I see two possibilities:
1. You use a mail server on the Internet, establish an HTTP connection there, and use SMTP messages to send your email from your CDC app. See http://www.java-tips.org/java-me-tips/midp/sending-email-from-j2me-devic... for an example.
2. Similar to 1, but if you control the server you can simplfy the exchange between your CDC app and the server by creating your own streamlined protocol instead of doing SMTP.
Hope this helps,
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.