Solved

Email Autoresponder from Form

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

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

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

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
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…
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

691 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