Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Results are not sent to email from an ASP page.

Status
Not open for further replies.

OreoBean1

Technical User
Oct 23, 2005
27
US
I have just setup a new website in Frontpage 2002. I used an ASP page to save the Contact Us page. The form on this page is a default form inserted from frontpage and uploaded no problem. Frontpage server extensions installed on the server, and the linkbars are working no problem. I'm using a default "form validator" and I haven't seen anything about a "form emailer".

The form results are not being sent to email. If anyone has any suggestions, I would greatly appreciate it. Thanks in advance!
 
What is your code for sending the form to email?

Thanks and Regards
Satish Kumar
 
You may want to try the ASP forum, this is for ASP.NET questions:

forum333
 
Not sure, I used this code and no success:

[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[

<%
' Put your SMTP Mail server here. If you do not know, ask your network administrator
smtpServer = "smtp.yourSMTPServerNameHere.com"
smtpPort = 25

' ---
dim sender, subject, body, smtpServer, smtpPort
' Now gets the data from Form
sender = Request.Form("sender")
receiver = Request.Form("receiver")
subject = Request.Form("subject")
body = Request.Form("body")

Set mail = CreateObject ("JMail.SMTPMail")
mail.ServerAddress = smtpServer & ":" & smtpPort
mail.Sender = sender
mail.Subject = subject
mail.AddRecipient receiver
mail.ContentType = "text/html" ' or you can put 'text/plain' for plain text email
mail.ISOEncodeHeaders = false
mail.ContentTransferEncoding = "8bit"
mail.Body = body

' 1 - highest priority (Urgent) ' 3 - normal ' 5 - lowest
mail.Priority = 3


' Add sender's IP address (not required, but useful for web-based email)
mail.AddHeader "Originating-IP", Request.ServerVariables ("REMOTE_ADDR")

' Actually send mail
mail.Execute
set mail = nothing

Response.write "Email sent OK!"
%>

[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[

I have an email address that works as an smtp forward, and I've tried installing Dimac w3Jmail from
 
Not to complicate things, as I am very new to ASP and HTML. I have been trying to setup a Contact Us page my website. The Contact Us form has three required fields that must be filled in before the submit will allow the page to continue.

The validator is working, however, when the page is submitted and refreshes to a new blank form the results are not sent to my email address. Not at all sure if the email works.
 
As jbenson001 has pointed out to you, you should try asking in the ASP forum as this forum is for ASP.NET.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top