File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes using Java mail API 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 » JSP
Bookmark "using Java mail API" Watch "using Java mail API" New topic

using Java mail API

ramu av

Joined: Feb 25, 2003
Posts: 28
hello evy body,
i am facing a problem in knowing my SMTP server name to mail form my jsp
here is the code i got from one of the exmples & please can any one tell me what should i key in instead of "mail.your.smtp.server" and ""
thanx in advance

Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
well.. that answer depends on you.. it's the SMTP server you will be using to send your emails. So, if you are working at a company, for example, you might wanna ask your system administrator what the SMTP server is, so you can make use of it..
If you want to have your own SMTP server you can try Apache James...
hope this helps

I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
After you solve this issue, you can check the Mailer Taglib, you will see how easy it is to use it if you wanna send mails using a JSP..
I agree. Here's the link:
subject: using Java mail API
It's not a secret anymore!