Solved

Email Autoresponder from Form

Posted on 1998-11-10
1
191 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now