Hi,
I have form pages and they are sent using jmail.asp files. When the form submitted the sender ends up with a "message sent successfully" text. But I want the screen to be redirected to a thanks.htm page. I include jmail.asp code. Remove message sent successfully text and redirect it to thanks.htm. I hope you can do it. Thanks,
<html>
<body>
<%
' mail object
set msg = Server.CreateOBject( "JMail.Message" )
' logging for debugging, silent for errors
msg.Logging = true
msg.silent = true
' sender
msg.From = "info@xxxxxxx.com"
msg.FromName = "Free exhibition ticket request"
' recipients
msg.AddRecipient request.form("recipient")
'msg.AddRecipientBCC "",""
' subject
msg.Subject = request.form("subject")
'HTML email
msg.HTMLBody = "<html><body><font face=""verdana"" color=""navy"">Name</font>
<br>"
msg.appendHTML request.form("name") & "<br>"
msg.appendHTML "<html><body><font face=""verdana"" color=""navy"">Phone</font
><br>"
msg.appendHTML request.form("Phone") & "<br>"
msg.appendHTML "<html><body><font face=""verdana"" color=""navy"">Email</font
><br>"
msg.appendHTML request.form("Email") & "<br>"
msg.appendHTML "<html><body><font face=""verdana"" color=""navy"">Exhibition<
/font><br>
"
msg.appendHTML request.form("Exhibition")
& "<br>"
msg.appendHTML "<html><body><font face=""verdana"" color=""navy"">Address</fo
nt><br>"
msg.appendHTML request.form("Address") & "<br>"
msg.appendHTML "<html><body><font face=""verdana"" color=""navy"">Comments</f
ont><br>"
msg.appendHTML request.form("comments")
' create message and add to it
'msg.Body = "Hello," & vbCrLf & vbCrLf & "This is a test."
'msg.AppendText vbCrLf & "Sincerely," & vbCrLf & vbCrLf & "The Web Site"
'add attachment
'(this properties are disable on our servers)
'msg.AddAttachment (Server.MapPath("Media\Ber
linSnow.jp
g"))
'msg.AddCustomAttachment "phrases.txt","This is the first phrase" & VbCrLf & "And this is the second phrase" & VbCrLf
'msg.AddURLAttachment "
http://www.net-language.com/test.jpg","ed.jpg
"
'msg.AppendBodyFromFile Server.MapPath("readmetest
.txt")
'msg.GetMessageBodyFromURL
"
http://www.cnn.com"
'msg.ExtractEmailAddresses
FromURL "
http://www.cnn.com"
' send message and capture errors
if not msg.Send("mail.xxxxxxx.com
" ) then
Response.write "<pre>" & msg.log & "</pre>"
else
Response.write "Message sent successfully!"
end if
'close connection
'close everything
'msg.Disconnect
Set msg = Nothing
%>
</body>
</html>