HI all,
i am actually sending data to this ASP page from a flash file - i know the data is getting to the page and i have a flag variable sent back to my flash file telling me the script has run - but the script does NOT appear to be sending the email.
i am sending variables representing the name, email address, subject and message of the user.
I know it works on my servers at work, but the NOT on the hosting company's servers - i have asked them and they say that CDONTS should work no problem
can someone check this code for me
many thanks in advance
-----------------------------------
<%
language = "vbscript"
response.buffer = true
dim mtext01, mtext02, mtext03, mtext04
mtext01 = "Name:" & request.form("name") & vbcrlf
mtext02 = "Email:" & request.form("email") & vbcrlf
mtext03 = "Comments: " & request.form("message") & vbcrlf
mtext04 = request.form("subject")
mtextz = mtext01 & mtext02 & mtext03
dim MailObj
set MailObj = server.CreateObject("CDONTS.NewMail")
if request.form("email") = "" then
mailObj.From = "No name"
else
mailObj.From = request.Form("email")
end if
mailObj.To = "myEmail@myDomain.com"
mailObj.Body = mtextz
mailObj.Subject = mtext04
mailObj.Send
set MailObj = nothing
response.write "&emailStatus=E-mail sent successfully"
%>
---------------------------------
What would i need to ask the hosting company?
i know it works on my win2k servers at work but not at the hosting company
???
thanks in advance
gilesb