Forum Moderators: phranque

Message Too Old, No Replies

Question about Email

How to send an email confirmation

         

cordless kettle

9:57 am on Jul 17, 2005 (gmt 0)

10+ Year Member



Hi, I have had a look around the forums, but haven't managed to find anything relevant to this problem.

I was wondering if anyone knew how to automatically generate confirmation emails upon receipt of a form which is on my site.

I assume that this is relatively simple, but I just don't know where to start.

(I hold a Yahoo mail address)

Thanks.

kaled

10:30 am on Jul 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The form processor will have to send the mail. This would normally be done by a separate program (or separate module).

Assuming that your form processor is written in perl, you should try the perl forum (forum13).

Kaled.

cordless kettle

10:35 am on Jul 17, 2005 (gmt 0)

10+ Year Member



Yes, the form processor is written in Perl. Thanks for the redirect, I'll have a look where you suggest.

henry0

11:32 am on Jul 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That should work with PERL/CGI
assuming mail.pl is installed

<<<
<form action="http://www.YOUR URL.com/cgi-bin/SITE NAME/mail.pl" method="post">
<form action="mailto:ANYONE@SITE NAME.com"
<!-- WHERE MAILTO IS YOUR DESTINATION ADDRESS -->
method="post" enctype="text/plain">
<input name="DESTINATION_ADDR" type="hidden" value="YOUR EMAIL ADDRESS">

<!-- <input name="CC_ADDR" type="hidden" value="IF NEEDED USE CC AND BCC">
<input name="BCC_ADDR" type="hidden" value=""> -->
<input name="_replyToField" type="hidden" value="SUB_ADDR">
<input name="_requiredFields" type="hidden" value=" Name, First Name,
Address, City, State, Zip Code, Telephone, E-mail Address">
<input name="SUCCESS_HTML" type="hidden" value ="http://www.YOUR URL.com/conf.html">

<!-- HERE CONF.HTML IS YOUR AUTOMATIC THANKS MESSAGE OR ANY MAIL -->

<input name="SUBJECT" type="hidden" value="Information_Request">
<input name="_envars" type="hidden" value="HTTP_REFERER, HTTP_USER_AGENT, REMOTE_ADDR">

<!-- THEN YOUR FIELDS -->
</form>

>>>>

cordless kettle

11:38 am on Jul 17, 2005 (gmt 0)

10+ Year Member



henry0

Thanks for the post. I'm new (make that extremely new) to Perl /CGI, however your suggesting looks sort of understandable to me. I will spend a while mucking around with it and hopefully I can get it to work for me before the day is through.

Thanks again.