Date sent:              Wed, 24 Jan 2007 21:54:47 -0500
From:                   "M. Lewis" <[EMAIL PROTECTED]>
To:                     [email protected]
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
===== [EMAIL PROTECTED] === 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


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to