• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help needed to send email using jsp  RSS feed

 
Rajesh Rajappan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai all
I am facing a problem to send e mail to other hosts like yahoo or rediff..using jsp am using tomcat server what r all the steps I need to follow for accomplishing the same ..if possible send me the source code and steps thank you
 
Himanshu Bisht
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i did this few days back. First of all download Javamail API.It contains all the help and examples to help u out.

Go to sun's site and read the tutorial.
java.sun.com/products/javamail/

Himanshu
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, before you spend too much time looking for bugs in your code, make sure that the SMTP server you're trying to send to will accept posts.
The easiest way to do this is to try sending via a mail client like Mozilla, Eudora, Thunderbird, etc...
If you can send with one of these clients, then you know the problem is with your code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!