Jenda Krynicky wrote:
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

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

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


Reply via email to