Solved

Email Autoresponder from Form

Posted on 1998-11-10
1
197 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
1 Comment
 
LVL 1

Accepted Solution

by:
someu earned 200 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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
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…
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

733 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