Re: Sending mail
- From: Jenda@xxxxxxxxxxx (Jenda Krynicky)
- Date: Thu, 25 Jan 2007 16:10:30 +0100
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
===== Jenda@xxxxxxxxxxx === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
.
- Follow-Ups:
- Re: Sending mail
- From: M. Lewis
- Re: Sending mail
- References:
- Sending mail
- From: M. Lewis
- Sending mail
- Prev by Date: Re: parsing XML
- Next by Date: Storing RegExp matches in an array
- Previous by thread: Re: Sending mail
- Next by thread: Re: Sending mail
- Index(es):
Relevant Pages
|