in reply to How to determine smtp host on a domain
Why don't you just grab something like Sendmail/Qmail or something like that and run a mail server on your server? That way, you won't have to mess around with contacting remote servers and working out which one to send to via Perl (Sendmail et al will do the hard work for you and they've been heavily tested, understand the possibly complexities of MX records (what happens if you have records 4,5,5 and 10 but host '4' is unavailable... etc etc) and they are dedicated programs for sending email)...
|