• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Java Mail API

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 164
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 28416
102
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hmm thanks a lot......
reply
    Bookmark Topic Watch Topic
  • New Topic