% If Request("Send") <> "" Then ' change to address of your own SMTP server strHost = "mail.blairmorganphoto.com" If Request("Send") <> "" Then Set Mail = Server.CreateObject("Persits.MailSender") ' enter valid SMTP host Mail.Host = strHost Mail.From = Request("From") ' From address Mail.FromName = Request("FromName") ' optional Mail.AddAddress "blair@blairmorganphoto.com", "Blair Morgan" 'test@blairmorganphoto.com ' message subject Mail.Subject = Request.form("FromName") & " - Contact Request from BlairMorganPhoto.com" ' message body BodyText = "The following information is submited by a contact at BlairMorganPhoto.com" & Chr(13) 'BodyText = BodyText & "
Would like to be added to mailing list: " & Maillist & "
" & Chr(13)
BodyText = BodyText & "Name: " & Request.form("FromName") & Chr(13)
BodyText = BodyText & "Phone: " & Request.form("Phone") & Chr(13)
BodyText = BodyText & "Email: " & Request.form("From") & Chr(13)
BodyText = BodyText & "Interest: " & Request.form("Interest") & Chr(13)
BodyText = BodyText & "Comments/Questions: " & Request.form("Comments") & Chr(13)
Mail.Body = BodyText
strErr = ""
bSuccess = False
On Error Resume Next ' catch errors
Mail.Send ' send message
If Err <> 0 Then ' error occurred
strErr = Err.Description
else
bSuccess = True
End If
End If
response.redirect ("http://www.blairmorganphoto.com/thanks.html")
End If
%>
|