Sending Emails from J2ME
Hi Sun Community:
I'm using the last version of the Sun Java Wireless ToolKit(2.5). I have being trying to add a feature to an application that I am writing to send emails. To do this I first went to the http://developers.sun.com/mobility/midp/articles/midp2network/
link and there is an example but it doesn't work.
1. It's still impossible to use the JavaMail API ?
2. Can someone send me a piece of code that really works ?
[462 byte] By [
jonhya] at [2007-11-27 10:38:26]

# 1
did you do the stuff as follow:
writing a MIdlet that send the datas (the mail address and the text) to a servlet
writing a servlet that using the datas of the MIDlet to construct a new Message
?
more java mail tips:
http://java.sun.com/developer/EJTechTips/2004/tt0426.html#1
http://docs.sun.com/source/819-0079/dgmail.html#wp18599
# 2
Thanks for the reply;
No, I dont want to use any servlet in my MIDlet.
I just want to create a direct connection with my mail client application to any SMTP server like yahoo, gmail, hotmail. I have been trying to use the example from sun http://developers.sun.com/mobility/midp/articles/midp2network/ but it doesnot work. I made some modifications to this code but for example when I send a message to my hotmail account it seems that ok. But then when I check my inbox the email isn't there. I have tried to check if I can send emails using telnet but I have a lot problems. In hotmail happens the same, in gmail there is a part where ask to send a command 'starttls' but it seems like the smtp server if waiting for more and I dont now why because this command has no parameters. And for yahoo it display a a message with a link for help, but there's not good information there.
Thats the reason of why I am asking for a piece of code.
Thanks
jonhya at 2007-7-28 18:54:27 >
