File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes which smtp server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "which smtp server" Watch "which smtp server" New topic

which smtp server

Gaurav Kalra

Joined: Mar 13, 2001
Posts: 27
Can anyone tell me the smtp mail server address, that would allow me to send mails thru my jsp code.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
It depends on your system configuration, which ISPs or gateway systems you use and so on.
If you have a mail client (Outlook, Eudora, Netscape Messenger etc.) which works on the same system or local network as the server, then look for the smtp host name setting in that client and use it in your JSP.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Gaurav Kalra

Joined: Mar 13, 2001
Posts: 27
im using so what's my smtp server name.
Phil Hanna
Ranch Hand

Joined: Apr 05, 2001
Posts: 118
Looks like "" is the SMTP host. You can verify this by running
telnet 25
The 25 is the SMTP port number. When I try it, it responds
220 ESMTP Sendmail 8.11.0/8.11.0; Sun, 15 Apr 2001 12:55:30 -0700
You can type a test message manually through telnet. Refer to for an example.
This is only for sending mail. For receiving mail, in your case the POP3 server is also, on port 110.
Phil Hanna
Author of :
JSP: The Complete Reference
Instant Java Servlets

Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="" TARGET=_blank rel="nofollow">Instant Java Servlets</A>
I agree. Here's the link:
subject: which smtp server
It's not a secret anymore!