C
CMCLab
Hello,
I'm running an IIS server on Windows 2000 with ActiveState Perl
5.8. I need an automated e-mailer that attaches a PDF file. To do so,
I'm using MIME::Lite; I need to use Net::SMTP in turn to interface with
the SMTP server. Whenever I try to instantiate the Net::SMTP object
through the CGI interface, the following error occurs:
"Failed to connect to mail server: Unknown error"
When I run the script from the command line interface, it makes the
connection fine, and sends the e-mail without problems. However in the
CGI interface, it fails. This is suggestive of a permissions problem,
but I'm unclear about which permissions I would have to change if this
was indeed the case.
The other thought I had was that going through the CGI interface changes
my identity to the mail server somehow, and it would no longer know what
domain I was from - but there is nothing in Net/SMTP.pm that I can see
that would suggest that.
I'm running out of ideas. Any thoughts?
Thanks.
I'm running an IIS server on Windows 2000 with ActiveState Perl
5.8. I need an automated e-mailer that attaches a PDF file. To do so,
I'm using MIME::Lite; I need to use Net::SMTP in turn to interface with
the SMTP server. Whenever I try to instantiate the Net::SMTP object
through the CGI interface, the following error occurs:
"Failed to connect to mail server: Unknown error"
When I run the script from the command line interface, it makes the
connection fine, and sends the e-mail without problems. However in the
CGI interface, it fails. This is suggestive of a permissions problem,
but I'm unclear about which permissions I would have to change if this
was indeed the case.
The other thought I had was that going through the CGI interface changes
my identity to the mail server somehow, and it would no longer know what
domain I was from - but there is nothing in Net/SMTP.pm that I can see
that would suggest that.
I'm running out of ideas. Any thoughts?
Thanks.