Hi there I am using some existing ASPMail script that works perfectly on 1and1 but have to use it on some webfusion space. Their support isnt too good!
Please can someone tell me where I am going wrong. I have a form on this page:
www.loans4france.com/decisionForm.asp
The relevant bit of code I am using is here - i have called the file aspMail.asp. I have had to modify the original bit of script on the other servers and so have included this at the end for reference.
MyMail.Host = "intmail.atlas.pipex.net"
MyMail.From = "emma.gale@northdorset-pct.nhs.uk"
MyMail.FromName = "Emma Gale"
MyMail.AddAddress = email
MyMail.Subject = "Enquiry from Loans4France"
MyMail.Body = MyBody
On Error Resume Next
MyMail.SendToQueue
Set MyMail = Nothing
The error i am receiving states that it does not support AddAddress
Original script that worked with 1and1
Set MyMail = Server.CreateObject("SMTPsvg.Mailer")
MyMail.FromName = enquiryName
MyMail.FromAddress= email
MyMail.RemoteHost = "mrvnet.kundenserver.de"
MyMail.AddRecipient "Gavin Borthwaite", "gbor26@aol.com"
MyMail.Subject = "Enquiry from Alpsbuy2let"
MyMail.BodyText = MyBody
MyMail.SendMail
Set MyMail = nothing
Response.Write ("Your e-mail has been sent")
%>