This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes How to mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to mail" Watch "How to mail" New topic

How to mail

gnanam gnanam

Joined: Feb 13, 2006
Posts: 1
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

Joined: Jan 10, 2002
Posts: 63870

"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.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

The JavaMail API is best discussed in the Other Java APIs forum. This topic has been moved there.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
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

Joined: Jan 15, 2006
Posts: 108
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

JAVA the only can called technology
I agree. Here's the link:
subject: How to mail
It's not a secret anymore!