?
Solved

Email Autoresponder from Form

Posted on 1998-11-10
1
Medium Priority
?
199 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

770 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