permaculture playing cards*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 14074
    
  16

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 7 API documentation
Scala Notes - My blog about Scala
elicia dent
Greenhorn

Joined: Jul 13, 2009
Posts: 9
Thank you!
 
 
subject: sending email .. how to know what smtp server to use?
 
Similar Threads
No More Messages!
I need to check for email in my J2EE app, please help??
How to send HTML page in mail insted of text
Sender's Address
mail proliferation