In article <Uesxc.32750$>, Matt Garrish wrote:
>
> "CMCLab" <> wrote in message
> news: ell.edu...
>> 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.
>>
>
> CGI processes on IIS run as the IUSR. Check that you allow anonymous access
That is not always true. You can confugure IIS to run as different IDs and it
still depends on the type of authentication being done. If NTLM auth is in
effect, CGI processes run as the authenticated use and NOT the web server
(anonymous) user.
This has burned me more than once because I am used to Apache and Unix/Linux...
> to the smtp server (in the snap-in control). If not, enable it and the
> problem should go away. It would also be a good idea to only allow messages
> to be sent from the local machine once you do, though.
>
> Matt
Kevin
|