Ovid skribis 2006-01-20 16:44 (-0800):
>   ) || die $!;

The assumption that $! will contain useful information when
Net::SMTP->new returned false, is a dangerous one. It may be because of
a non-OK status string received from the server, in which case $!'s
value is not likely to be related to the actual error at hand.

> From what I can tell from the Net::SMTP docs, "Port" is not a valid
> parameter.  "LocalPort" is a valid parameter, but that fails  with
> "Address already in use" (since postfix is using it).

Net::SMTP maps Port to PeerPort, for use with its superclass,
IO::Socket::INET.

> Does anyone know what I'm doing wrong?

No, but you may want to consider adding Debug => 1 to the Net::SMTP->new
call. This is a feature from NET::Cmd, Net::SMTP's other superclass.

To find out where the "Invalid argument" comes from, use a tool like
strace(1).


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Reply via email to