I am having an application build using 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....