This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do i send a mail using servlets or Jsp  RSS feed

 
Rinku Sharma
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I have been working on FormMailer through which one can send email to anybody using the port and host server.
I have used the example given in Inside Servlets by Callaway, but somehow it doesnt work and gives an error
"some technical difficulty in loading the page"
can somebody help me out with this or any other way of developing the Form Mailer application.

Amit
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PLease check this discussion.
http://www.javaranch.com/ubb/Forum7/HTML/002734.html
regds
maha anna
 
Rinku Sharma
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Maha Anna,
I did try to run the mailer using the code provided in the forum by Govind seshadri (jguru), but it is not working.When i run the page it shows me a blank page and gives the following error on the DOS prompt
" ERROR SENDING MAIL:sun.net.smtp.SmtpProtocolException: 550 5.7.1. Unable to relay for amits_007@rediffmail.com" .Is there any servlet or other code working behind or is it some mistake on my side.
Can you please tell me in more detail how to use the code or any other way of doing it.
Amit
[This message has been edited by Rinku Sharma (edited April 03, 2001).]
[This message has been edited by Rinku Sharma (edited April 03, 2001).]
 
Keith Neibarger
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have the SMTP server address right? For example: SmtpClient smtp = new SmtpClient("my.emailserver.com"). I had this same problem until I changed the email server address to the correct one for our client. It worked fine then.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keith, welcome to the Ranch. However, please don't answer 5-year old questions. I'm sure that the original poster has long since stopped waiting for an answer.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!