This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to mail

 
gnanam gnanam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi...
can any one say! How send a mail using servlet...
I had just download one smtp serverand i run a
example program in tomcat it says mail sent.
but the mail server not sent that mail. but smtp server continue
to retry to sent mail.

can any one say which is best server for sending mail and how to
configur it?

Tanks in advance...

[Bear edit: removed instructions to respond via email. All responses should take place in the forum]
[ February 13, 2006: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"gnanam gnanam",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaMail API is best discussed in the Other Java APIs forum. This topic has been moved there.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Before you try to send email from a servlwt, you should make sure that the mail server works in general. Can you connect to it from your email client, and use it to send mail?
 
albert sie
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
firstly you need to make sure the application you use to send mail, is it can send the mail to the mail server or SMTP server? if the mail can send to the server, that's mean you application is no problem. if you mail can reach the server but not reach the recipient server, that because some reason, maybe block by the recipient server, mayb you server cannot get the connection from the recipient mail server. go and check it out
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic