I required to implement MIDP application that sends mail,
How to send a mail from MIDP application without servlet interaction?
Is there any open source APIs available for that? Pls, guide me---
I required to implement MIDP application that sends mail,
How to send a mail from MIDP application without servlet interaction?
Is there any open source APIs available for that? Pls, guide me---
http://www.java-tips.org/java-me-tip...e-devices.html
Go to this url you will find a complete example of sending a mail. But as you have asked sending mails without servlet interaction, I dont think thats possible. Since for sending mails you need to have support for SMTP protocol which mobiles may not have. So you will be calling the servlet with http protocol and then servlet will send the mail.
Hope this helps you out.
ok, thank u for ur reply.
Isn't possible to send mail without http and other gateway utilities?
I saw the code at the link (which was sent to me), but I have an error at the "Transport.send(m); in SendMail(-------)" function as server connection failed. Can u help me?
Hi neeraja,
for direct connection to an SMTP server, have a look at the SMTP Email MIDlet example here:
http://developers.sun.com/mobility/m.../midp2network/
Pit
Thank u very much for replying.
I have to clear one thing, after server send mail, the MIDlet will get response tht server send(like,ur mail is successfully send). Is really server send the mail to the recepient address?, that is, Is it only works on real device not on emulator? Pls, give me the details---
Last edited by neeraja.nokia; 2008-11-19 at 06:28.
Hi,
Go to the below link
http://wiki.forum.nokia.com/index.ph...e_applications
I have found this article in one book and you can refer that book for more details. I have mentioned the name of the book in the article.
Sunil
Mobile Application Developer