I would suspect that the mail server is not accepting your connection for some reason - to be sure you can turn on the debugging output in the constructor by changing it to:
If this does not produce any output then it is likely that there is a network problem - either the address of the mail server cannot be resolved or you cannot connect to the server for some other reason. You could try connecting to port 25 of the server using telnet from the command line.$smtp = Net::SMTP->new('smtpmail.server.com', Debug => 1);
/J\
In reply to Re: Trouble getting Net::SMPT to work
by gellyfish
in thread Trouble getting Net::SMTP to work
by yankeeblue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |