Skip to main content

Mail in CDC

1 reply [Last post]
lordhiru
Offline
Joined: 2005-02-07
Points: 0

Hi,

Can anyone tell me how to send an email in an CDC application?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
terrencebarr
Offline
Joined: 2004-03-04
Points: 0

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,

-- Terrence