http://qs321.pair.com?node_id=816235

thiagu_mvt has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
How can I find my smtp server name using perl ?
-Thiagu

  • Comment on How to find and print my smtp server name in perl

Replies are listed 'Best First'.
Re: How to find and print my smtp server name in perl
by Corion (Patriarch) on Jan 08, 2010 at 08:05 UTC

    You can't. The SMTP server needs to be configured by the user, as there is no standard way to determine the SMTP server to use.

      thanks corion. Just trying to find the default available smtp server name if it is reach..

        As I said, there is no common way to determine the default, as it depends on the MTA software installed on the local machine, and/or on the configuration of the mail clients sending the mail.