• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do i send a mail using servlets or Jsp

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
eat bricks! HA! And here's another one! And a tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic