开发者

send email through j2me application

I am having an application build u开发者_运维知识库sing j2me lwuit. I need to send e-mail from that app.


To make your application smaller, I'd suggest to implement SMPT over a SocketConnection. For small e-mails this shall be pretty straightforward:

SocketConnection connection = (SocketConnection)Connector.open("socket://your.smtp.server:25");
DataInputStream is  = sc.openDataInputStream();
DataOutputStream os = sc.openDataOutputStream();
//now the SMTP chat with server

Using this approach may allow you to make your application to be depend only on MIDP/CLDC profiles, thus to be easier portable to other phones (at least in theory).


Hi find the link its working fine. You can send mail with attachment.

http://itminds-usefullinks.blogspot.com/2011/12/sending-mail-from-j2me-app-wihtout-web_01.html

its really helps You....

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜