• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sending mail with JAVA API

 
kolawole kolawole
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what re the softwares required to send a mail in java using the java mail API.

how do i integrate these sofwares in order to send a mail.
 
Senthil Kumar Somsundaram
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you be bit more clear with the question?
 
Senthil B Kumar
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Setup a Mail Server or You can use any existing mail server reachable in the network.
2) JavaMail API
3) Write your java class to send the mails, using the JavaMail API. Mention the mailserver address in these api's.

When the send function is called the mail is sent via the Mail Server.
 
St�phane TRAUMAT
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

You can download the javamail api at
http://java.sun.com/products/javamail/

Then, you can send a mail with this kind of code:
http://www.javaalmanac.com/egs/javax.mail/SendApp.html

It's quite simple and it works very well
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic