> I am using Net::SMTP to send mails to an SMTP server.
> If the server is running on a non std port how do I send mails to this
> port
>
> Thanks
> Ram
You should be able to tack on the port with a colon for the host during
object construction. The host gets passed through to IO::Socket::INET
which understands that syntax. If that doesn't work, possibly because it
gets clobbered by the C<|| 'smtp(25)'> when the 'Port' argument is not
set, then you should be able to pass a 'Port' argument to the
constructor as well.
Aka, one of:
my $smtp = new Net::SMTP ('mailhost.com:2525');
-or-
my $smtp = new Net::SMTP ('mailhost.com', Port => 2525);
Should work.
http://danconia.org
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>