Hi there,
I am trying to send an email through asp but for some reason, it is not going through
Im on IIS 6.0 and the defautl SMTP virtual server is switched on.
Any help is much appreciated on this.
Thanks!
I am trying to send an email through asp but for some reason, it is not going through
Code:
dim mailbody, mailbody_formatted
mailbody = Request("message")
mailbody_formatted = Replace(mailbody, "\n", "<br>")
Dim Mail
Set Mail = Server.CreateObject("CDONTS.NewMail")
'Mail.From = Request("email")
'Mail.From = "test@gmail.com"
Mail.To="to_emai@domain.com"
Mail.Subject = "Song: New Landing Page Submit"
Mail.MailFormat = 0
Mail.BodyFormat = 0
Mail.Body = "<table><tr><td><b>First Name: </td><td>" & Request("firstname") & "</td></tr><tr><td><b>Last Name: </td><td>" & Request("lastname") & "<tr><td><b>Home Phone:</td><td> " & Request("homephone") & "</td></tr><tr><td><b>Work Phone:</td><td> " & Request("workphone") & "</td></tr> <tr><td><b>Email: </td><td>" & Request("email") & "</td></tr></table>"
Mail.Send
Set Mail=nothing
Im on IIS 6.0 and the defautl SMTP virtual server is switched on.
Any help is much appreciated on this.
Thanks!