Close
jGuru Forums
Posted By: Michael_Zeitlin Posted On: Tuesday, August 7, 2001 06:54 AM
I am calling a Java class using a UNIX shell script. The program will be run on different servers so I cant just use a specific SMTP server name. Is there an automated way to find the name of the SMTP server either in the shell script or in the Java Mail API?
Re: Automated way to find SMTP server
Posted By: Luigi_Viggiano Posted On: Tuesday, August 7, 2001 12:21 PM
Posted By: John_Zukowski Posted On: Tuesday, August 7, 2001 09:24 AM
Try setting a system property, reading setting from a configuration file.
Consider looking up the MX record, but that is overkill.