Hi All, I seem to have a problem with a classic asp page hosted @ godaddy but not sure if the problem is with the code! The page generates an email when user wants to recommend a product to a friend! If the email msg body contains a url the email does not go through but no errors are reported. The url that i am passing is to a domain on godaddy!
Here is the sample code with some hardcoding to demonstrate the problem:
<%
Dim objNewMail
Set objNewMail = Server.CreateObject("CDO.Message")
objNewMail.From = "from@test.com" '<- valid email goes here!
objNewMail.To = "to@test.com" '<- valid email goes here!
objNewMail.Subject = "test subject"
objNewMail.TextBody = "Click the following link to see the property http://www.test.com"
' GoDaddy SMTP Settings
objNewMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objNewMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "relay-hosting.secureserver.net"
objNewMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objNewMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objNewMail.Configuration.Fields.Update
objNewMail.Send
Set objNewMail = Nothing
Response.Write ("Message sent successfully!")
%>any ideas? cheers Jay
------------------------------------
New Update: I have made some progress to diagnose the problem at it seems that only when I include this particular url does it fail and if I use any other the email goes through! Strange as the url is also on godaddy! Could it have finished up on some blacklist?!