0

i want create java mail application...
but when i read sample programs there is smtp server
String mailHost = "your.smtp.server";
or smtp.gmail.com

how i get this server or how to create smtp server in java??
example code plz for smtp server ??

2
Contributors
1
Reply
3
Views
9 Years
Discussion Span
Last Post by VernonDozier
0

i want create java mail application...
but when i read sample programs there is smtp server
String mailHost = "your.smtp.server";
or smtp.gmail.com

how i get this server or how to create smtp server in java??
example code plz for smtp server ??

I assume you want to use the JavaMail API?

http://java.sun.com/products/javamail/

You definitely don't have to write an SMTP server and you don't need to install an SMTP server on your machine either to use the sample programs. Use Yahoo Mail or GMail or whatever and they'll provide the SMTP address. Gmail appears to be "smtp.gmail.com". I think you have to have the Yahoo Plus account to use their SMTP, but I'm not sure. If you download JavaMail, it comes with some examples.

http://www.e-eeasy.com/SMTPServerList.aspx

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.