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 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