Re: Sending mail
- From: cajun@xxxxxxxxxxxx (M. Lewis)
- Date: Fri, 26 Jan 2007 03:50:54 -0500
Jenda Krynicky wrote:
Date sent: Wed, 24 Jan 2007 21:54:47 -0500
From: "M. Lewis" <cajun@xxxxxxxxxxxx>
To: beginners@xxxxxxxx
Subject: Sending mail
I've used MIME::Lite for the mail tasks I've had up till now and it
has worked very well. Now I need to send mail via a different port
than port 25, say port 587. As far as I can tell, MIME::Lite does not
have this capability.
You must have missed something. The $hostname and %options passed in
$mail->send('smtp', $hostname, %options);
are passed to Net::SMTP->new() and one of the available options is Port. So
$mail->send('smtp', 'hostname', Port => 587);
should work fine. The docs of the Net::* modules generaly leave a lot to be desired and the Port option is not documented (in Net::SMTP 2.29), but the code accepts it and I think it's very unlikely the option will go away.
Jenda
Thank you very much Jenda. The docs are very cryptic in this regard. Perhaps not if you know the Net:: modules though (which I do not). This will be very helpful. Thank you.
Mike
--
IBM: Irresponsibility Behaved Multinational
03:45:01 up 3 days, 12:45, 0 users, load average: 0.37, 0.55, 0.67
Linux Registered User #241685 http://counter.li.org
.
- References:
- Re: Sending mail
- From: Jenda Krynicky
- Re: Sending mail
- Prev by Date: Re: Trying to re-arrange output of email with a list of items
- Next by Date: Re: Calling functions from modules
- Previous by thread: Re: Sending mail
- Next by thread: SSH
- Index(es):
Relevant Pages
|