Wrong script in ASP to send emails

I don’t know why this code is wrong:

strMessage = “Nueva fotograf?a”
’ Create email object and set all the values, setting the from address to be the person who filled in the form
Set Mailer = Server.CreateObject(“SMTPsvg.Mailer”)
Mailer.FromName = “Alfonso”
Mailer.FromAddress= “[email protected]
Mailer.RemoteHost = “localhost”
Mailer.AddRecipient “Proud To Have Met You”, “[email protected]
Mailer.Subject = “Proud To Have Met You - Contact Form”
Mailer.ContentType = “text/html”
Mailer.BodyText = strMessage

I write this but no message is sent.

Can anybody help me? Thanks

Your remotehost field is wrong: should be mail.yourdomain.ext

Thanks. It`s OK now.

Hello

mayI know this script is using CDO component using asp.net?

thanks

strMessage = “Nueva fotografía”
’ Create email object and set all the values, setting the from address to be the person who filled in the form
Set Mailer = Server.CreateObject(“SMTPsvg.Mailer”)
Mailer.FromName = “Alfonso”
Mailer.FromAddress= “[email protected]
Mailer.RemoteHost = “localhost”
Mailer.AddRecipient “Proud To Have Met You”, “[email protected]
Mailer.Subject = “Proud To Have Met You - Contact Form”
Mailer.ContentType = “text/html”
Mailer.BodyText = strMessage

also - because of authnetication issues - the script may still not work in all situations, and you’ll have to move to CDOSYS, or CDONTS