mikelawrence
Programmer
I'm moving from one windows 2003 server to another, on my old one i can send emails using a script but the exact same script fails on my new server. When i look in the bad mail folder the error message is
Diagnostic-Code: smtp;503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.
My code is
<%@ language="javascript" %>
<%
var myMail = Server.CreateObject("CDO.Message");
myMail.Subject="Sending email with CDO"
myMail.From="mike@rewardlife.com"
myMail.To="mike@rewardlife.com"
myMail.TextBody="This is a message."
myMail.Send()
%>
Or my VB version is
<%@ language="vbscript" %>
<%
Dim iMsg
set iMsg = CreateObject("CDO.Message")
With iMsg
.To = "mike@rewardlife.com"
.From = "mike@rewardlife.com"
.Subject = "Email sent from VB script"
.TextBody = "This is the body of the email."
.Send
End With
Set iMsg = Nothing
%>
I've checked the write permissions on the inetpub/mailroot folder and that seems ok? My hosting company seem to be ignoring me and this is preventing the migration from taking place so i would really appreciate any ideas. This is not my area so i could well be missing something blindingly simple so don't make any assumptions about my competence!
Thanks
mike
Diagnostic-Code: smtp;503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.
My code is
<%@ language="javascript" %>
<%
var myMail = Server.CreateObject("CDO.Message");
myMail.Subject="Sending email with CDO"
myMail.From="mike@rewardlife.com"
myMail.To="mike@rewardlife.com"
myMail.TextBody="This is a message."
myMail.Send()
%>
Or my VB version is
<%@ language="vbscript" %>
<%
Dim iMsg
set iMsg = CreateObject("CDO.Message")
With iMsg
.To = "mike@rewardlife.com"
.From = "mike@rewardlife.com"
.Subject = "Email sent from VB script"
.TextBody = "This is the body of the email."
.Send
End With
Set iMsg = Nothing
%>
I've checked the write permissions on the inetpub/mailroot folder and that seems ok? My hosting company seem to be ignoring me and this is preventing the migration from taking place so i would really appreciate any ideas. This is not my area so i could well be missing something blindingly simple so don't make any assumptions about my competence!
Thanks
mike