my dog learned polymorphism*
The moose likes Other JSE/JEE APIs and the fly likes how to use IP address instead of the mail server name in Java 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 use IP address instead of the mail server name in Java Mail ?" Watch "how to use IP address instead of the mail server name in Java Mail ?" New topic
Author

how to use IP address instead of the mail server name in Java Mail ?

Ved Antani
Greenhorn

Joined: Jan 05, 2003
Posts: 28
hi...
I dont know the name of my mail server but I have its IP. Can I use it ?
Help me
Ved
Jon Dornback
Ranch Hand

Joined: Apr 24, 2002
Posts: 137
if you are referring to putting the IP address in the property "mail.smtp.host" instead of the name of the mail server, yes, that will work just fine.
even though the server address is a string, passing the IP address as a string is has the same effect. "192.168.1.101" or "smtp.mydomain.com" are both acceptable.
[ March 26, 2003: Message edited by: Jon Dornback ]

use the [CODE] tags - it makes it much easier for people to help you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to use IP address instead of the mail server name in Java Mail ?