Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
elicia dent
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
Yes, how would I know what properties to use when sending email from a java method?
Thanks!
Elicia
 
James Ward
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15484
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
elicia dent
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic