Thanks for checking further. This also could be an OS difference where *nix based inet_aton() is different from NT based calls. I also suspect that inet_aton() simply uses gethostbyname() when it's asked to resolve a domain.

Some of the search results talk about problems emerging when the SMTP and the web server share the same machine. Resolving its own hostname seems to be a problem in some instances. I can never replicate the SMTP problems a [very] few NT users have no matter what Perl or NT OS type. Perhaps it is that I always use an external mail server. It would be an interesting experiment for you to find an independent SMTP which allows relay and test with both the original and modified scripts.

------------------
Michael Farris
UBB Administrator and Customer Support