aspose file tools
The moose likes Beginning Java and the fly likes sending email .. how to know what smtp server to use? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "sending email .. how to know what smtp server to use?" Watch "sending email .. how to know what smtp server to use?" New topic
Author

sending email .. how to know what smtp server to use?

elicia dent
Greenhorn

Joined: Jul 13, 2009
Posts: 9
Hello
Yes, how would I know what properties to use when sending email from a java method?
Thanks!
Elicia
James Ward
Ranch Hand

Joined: Apr 27, 2003
Posts: 263
At the very minimum you need to know the:

SMTP Server Host Name OR IP Addresss
SMTP Port (if it is non-default i.e if it is not 25)

And if it requires authentication, you also need to know the:
UserName/Password to authenticate.

See the Java Mail API.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14668
    
  25

Your Internet provider that you normally use to send and receive e-mail on your computer can tell you what the name or IP address of their SMTP server is and what settings you need to use.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
elicia dent
Greenhorn

Joined: Jul 13, 2009
Posts: 9
Thank you!
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: sending email .. how to know what smtp server to use?