send email through j2me application
问题 I am having an application build using j2me lwuit. I need to send e-mail from that app. 回答1: 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