Hi there,
I'm using ASPMail and would like to know how I can send a confirmation back to the user as a formatted HTML email response to a feedback form?
Here's what I have tried so far and have managed to send myself a notification:
<%
Dim strBody
' This email will be sent to the user
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromAddress= "blah@blah.org"
Mailer.RemoteHost = "blah.com"
Mailer.AddRecipient "", request.form("email")
Mailer.Subject = "Feedback Confirmation"
Mailer.ContentType = "text/html"
Mailer.BodyText = strBody
Mailer.SendMail
strBody = "<HTML>" & _
"<HEAD></HEAD>" & _
"<BODY>" & _
" <Font Face=Arial Size=5><B>" & _
" This is a test Email" & _
" </B></Font><BR>" & _
" <H3><A href=http://www.blah.org>Click here</a>" & _
" to go to blah.org</h3><br>" & _
" The feedback you gave is as follows<br><br>" & _
"</BODY>" & _
"</HTML>"
' This email will be sent to the webmaster or whoever else is specified
'Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
'Mailer.FromAddress= Request.Form("email")
'Mailer.RemoteHost = "blah.com"
'Mailer.AddRecipient "", "blah@blah.org"
'Mailer.Subject = "Site Feedback"
'Mailer.BodyText = Request.Form("Info")
'Mailer.SendMail
%>
Any help you can give me will be greatly appreciated.
Thanks in advance.
imi