• Post Reply Bookmark Topic Watch Topic
  • New Topic

sending mail

 
Alex George
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I have my program send emails? Can I do it using javax.mail api? Do I need my own mail server for that?
Thanks in advance.
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you can send mails using the Java Mail API. Here's an article about the same. You will have to point your application to an smtp host for sending the mails. That article explains the APIs with a small example.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The J2EE FAQ links to a number of helpful resources regarding JavaMail, including a very extensive introduction with many examples.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!