• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Mail API

 
karthik mama
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to setup a java application to send mail using javax.mail api. Please tell me what all is needed? like the mail server, the settings etc
How can Websphere Application Server v6.1 be used as a mail server?
Please help me with the details like SMTP host name,password,user name. i'm actually new to this .....
Thanks,
 
karthik mama
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im getting an exception

javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.MessagingException: Exception reading response;

Please someone help
 
Vinoth Thirunavukarasu
Ranch Hand
Posts: 164
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The bellow link will help you to send mail using java.Here.
You must have Properties, Session, MimeMessage, BodyPart, MultiPart and Transport class. We need a host name, smpt, from address, to address, body text and a subject.

Regards,
Vinoth.
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
karthik mama wrote:How can Websphere Application Server v6.1 be used as a mail server?
That isn't a good idea. It's designed to be a web application server. If you have Websphere and need to send e-mail, it's extremely likely that you already have an e-mail (SMTP) server available.
karthik mama wrote:Please help me with the details like SMTP host name,password,user name. i'm actually new to this.
All of those are things that we can't tell you. If you go to the network administrators in your company, they should be able to tell you the address of your company's SMTP server and how to authenticate to it.
 
karthik mama
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmm thanks a lot......
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic