This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
Marshal
Posts: 27211
87
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......
 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic