T
TWB
Hi All.
I've got an asp page using CDONTS to send an email. It was working
fine until Godaddy migrated me to a different server. I want to be
clear, I am quite sure the script is OK (but I'll put it at the end of
the post just in case), there are no error messages and the redirect
works like a charm. The issue is that the email does not appear to be
getting sent. We've tested numerous email addresses, but they are all
in working order.
Godaddy says that CDONTS is working on their server, so they don't
know what it is.
Let's assume that the form and asp page are working. My exchange
server is working as well. CDONTS is working on the server. What
could possibly be causing this issue.
They were talking about domain A records and MX records, but
everything was working just fine until they migrated me to this
server.
Any experts got ideas?????????????????
Sample ASP Page Code. This is the only code in the file. Is it
missing anything?
-------------------------------------------------------------------------------------------------------------------
<%@ Language="VBSCRIPT" %>
<%
dim from
dim body
dim subject
from = request.form("from")
body = request.form("comments")
subject = request.form("name")
%>
<%
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = from
objMail.Subject = subject
objMail.To = "myhardcodedemailaddress"
objMail.Body = body
objMail.Send
Set objMail = Nothing
Response.redirect "thanks.htm" '<- auto-redirection
'You must always do this with CDONTS.
'Change the page name to one that exists on your site.
%>
I've got an asp page using CDONTS to send an email. It was working
fine until Godaddy migrated me to a different server. I want to be
clear, I am quite sure the script is OK (but I'll put it at the end of
the post just in case), there are no error messages and the redirect
works like a charm. The issue is that the email does not appear to be
getting sent. We've tested numerous email addresses, but they are all
in working order.
Godaddy says that CDONTS is working on their server, so they don't
know what it is.
Let's assume that the form and asp page are working. My exchange
server is working as well. CDONTS is working on the server. What
could possibly be causing this issue.
They were talking about domain A records and MX records, but
everything was working just fine until they migrated me to this
server.
Any experts got ideas?????????????????
Sample ASP Page Code. This is the only code in the file. Is it
missing anything?
-------------------------------------------------------------------------------------------------------------------
<%@ Language="VBSCRIPT" %>
<%
dim from
dim body
dim subject
from = request.form("from")
body = request.form("comments")
subject = request.form("name")
%>
<%
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = from
objMail.Subject = subject
objMail.To = "myhardcodedemailaddress"
objMail.Body = body
objMail.Send
Set objMail = Nothing
Response.redirect "thanks.htm" '<- auto-redirection
'You must always do this with CDONTS.
'Change the page name to one that exists on your site.
%>