NTLM Authentication in SQL Server Agent or AT BatchBack
I have written a VB.NET console application that generates a PDF report and then sends it out to an email address. Here’s the strange thing: When I run the program from the command line, it works perfectly. But when I schedule it in either the AT batch command or in SQL Server Agent, it returns the following error:
SMTP_Connect:
Connecting to SMTP server 123.123.111.111:465
smtp_host: 123.123.111.111
smtp_port: 465
smtp_user: my_username
InitialResponse: 220 exch.mail.mycompany.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at Wed, 20 Sep 2006 12:14:42 -0400
login_method: NTLM
Finished and NOT authenticated
ChilkatSSPI.authenticate: failed to prepare next package
NTLM authentication failed
Failed to login using NTLM method
Failed to connect to SMTP server.
I’ve tested over and over: command line: works. AT or SQL Agent: Error. Can’t be permissions. I’m logged in as administrator.
Any idea of where to look?
Answer: |