Peamasii has asked for the wisdom of the Perl Monks concerning the following question:
My question has to do with connecting to an smtp host. Most email modules like Mail::Sender or Mail::Bulkmail require knowing the smtp machine name. In my case I want to use the recipient's smtp machine when doing a mailing. For example, sending email to peamasii@hotmail.com, I would connect to mail.hotmail.com as the smtp.
I need to know how to find out the smtp host name for each domain in my list (sometimes, it's mail.domain.com, other times it's smtp.domain.com, etc.). Does anyone have some code that would do this? Most POP servers do this internally but I have no idea how (the POP RFC didn't help me).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to determine smtp host on a domain
by Kanji (Parson) on Feb 19, 2002 at 02:15 UTC | |
|
Re: How to determine smtp host on a domain
by blakem (Monsignor) on Feb 19, 2002 at 02:08 UTC | |
|
Re: How to determine smtp host on a domain
by gav^ (Curate) on Feb 19, 2002 at 02:11 UTC | |
|
Re: How to determine smtp host on a domain
by beebware (Pilgrim) on Feb 27, 2002 at 20:27 UTC |