wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to mail" Watch "How to mail" New topic
Author

How to mail

gnanam gnanam
Greenhorn

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

Joined: Jan 10, 2002
Posts: 60782
    
  65

"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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

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

Joined: Mar 22, 2005
Posts: 41108
    
  45
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?


Ping & DNS - my free Android networking tools app
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: http://aspose.com/file-tools
 
subject: How to mail
 
Similar Threads
multiple smtp host
java mail response code
Java mail : getting response from smtp server
how to know the domain names of the smtp servers
e-mail hits