PDA

View Full Version : Help with asp form


johnregan
04-29-2008, 03:44 PM
I have a contact form and us ethe following code:

<%
Set Mail = Server.CreateObject("SMTPsvg.Mailer") 'create an Asp mail component.
Mail.FromName = "Diamond Escorts"
Mail.FromAddress= "sales@abacusmedia.tv"
Mail.RemoteHost = "mrvnet.kundenserver.de" ' The mail server you have to use with Asp Mail
Mail.AddRecipient "Your Name", "info@diamondescorts.tv"
Mail.Subject = "Website - Info Request"
Mail.BodyText = "First Name" & Request.Form("firstname") & vbcrlf & "Last Name" & Request.Form("lastname")& vbcrlf & "Email Address" & Request.Form("email") & vbcrlf & "Phone Number" & Request.Form("phone")
if Mail.SendMail then
Response.Write "Your mail has already been sent..."
else
Response.Write "Mail send failure. Error was " & Mail.Response
end if
Set Mail = Nothing
%>

The email sends and works fine but now i need to also send a confirmation email to the sender, can anyone help me with this.

Thanks