Smart Mailer ASP Support Product Page

HTTP Error 401.2 Server 2012

Reported 17 Sep 2014 08:37:16
1
has this problem
17 Sep 2014 08:37:16 Michael Bush posted:
Hi,
I am trying to send an email using SmartMailer on Server 2012 using an email template. Here is my code for sending the email:

<%
Server.ScriptTimeout = 300
Set sm1 = new SmartMailer
sm1.checkVersion "1.07"
sm1.contentCharset = "us-ascii"
Session.CodePage = sm1.getCodepage()
sm1.smtpSetup "xxxxxxx", "", "", ""
sm1.pickup = ""
sm1.component = "cdo"
sm1.tmpFolder = ""
sm1.embedImages = true
sm1.progressBar = ""
sm1.ignore_errors = false
sm1.useQueue = false
sm1.setFrom "xxxxx", "xxxxxx"
sm1.setTo ""&ToFirstName& " " &ToLastName, ToEmail&""
sm1.setCc ""&CCFirstName& " " &CCLastName, CCEmail&""
sm1.setBcc "xxxxx", "xxxxx"
sm1.Subject = ""&Subject&""
sm1.setBody_Template_html ""&URL&""
sm1.sendMail "one"
%>

When I try to send the email, I get the following error - HTTP error 401.2 You are not authorized to view this page due to invalid authentication headers.

I have Windows authentication on the IIS Site it's hosted on, but I cannot enable anonymous authentication as it needs to be disabled. It worked fine on Server 2008, but since upgrading to Server 2012, I receive the above error.

Any ideas?

Michael

Reply to this topic