Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Email Autoresponder from Form

Posted on 1998-11-10
1
Medium Priority
?
201 Views
Last Modified: 2013-12-25
My client wants to automatically send an email to any surfer who fills out and submits a form.

The page is located at:
http://www.netafim-usa.com/feedback.htm

I am using the formmail script from Matt's script archive.

I have defined
<form method="POST" action="formmail/formmail.cgi">
<input type="hidden" name="recipient" value="netafim@netafim-usa.com">
<input type="hidden" name="subject" value="Netafim Irrigation Reply to Your Request">
<input type="hidden" name="redirect" value="http://www.netafim-usa.com/thanks.html">
<input type="hidden" name="Where" value="This was sent from the More Information Request Page"><b>

and

<b>E-mail: </b><input type="text" name="email" value size="35">

My Digiweb.com account allows for an automatic responder if you send email directly, but not from a form.

Is there a CGI or Java script that can do this?

Thanks, April
0
Comment
Question by:aprillougheed
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
someu earned 400 total points
ID: 1829526
You can use HTML to send the message directly from the form, but you can't use this form info.
The code is
<script>
function sendMail()
//if the mail is for him:
    document.forms["toSend"].action="'mailto:"+document.forms["toSend"].mail.value+";SUBJECT=Netafim Irrigation     Reply to Your Request'" //Sends him the mail
    document.forms["toSend"].submit()

//if the mail is for you:
    document.forms["toSend"].action="'mailto:Yourmail@jaja.com;SUBJECT=Netafim Irrigation     Reply to Your Request'" //Sends him the mail
    document.forms["toSend"].submit()
}
</script>
<form name="toSend">

      <input type="hidden" name="recipient" value="netafim@netafim-usa.com">
      <input type="hidden" name="subject" value="Netafim Irrigation Reply to Your
      Request">
      <input type="hidden" name="redirect" value="http://www.netafim-usa.com/thanks.html">
      <input type="hidden" name="Where" value="This was sent from the More
      Information Request Page">
<br>E-mail: </b><input type="text" name="email" value size="35">
</form>

this will ask the user to send the mail, and the send you him mail
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question