• Post Reply Bookmark Topic Watch Topic
  • New Topic

send e-mail from a java application  RSS feed

 
pradeep arum
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
how to send e-mail from a java application, with the subject and other things set by me , and not the server name if for example if my web server is tomcat ,I dont want it to show the server name even if set the subject.and i think i can do it by javamail API, but will it go to all the e-mail servers yahoo,hotmail,gmail etc. is there any universal way of doing it?
thanks
pradeep
 
Jeffrey Hunter
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the JavaMail API, and you'll need an outgoing mail server to deliver the message. If you have a mail server running on the local machine, you can probably use "localhost".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!