Forum Moderators: coopster & phranque

Message Too Old, No Replies

How to email form receipt acknowledgement?

         

Jon_King

6:27 pm on Feb 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I use simple cgi script processing (Matt's Scripts) for my email and I would like to send an email acknowlegement to the sender.

Currently I just have a thankyou page response to the form and think it better to actually send an email response as well. Can anyone give me an idea how to do this?

muskr

6:20 pm on Feb 6, 2004 (gmt 0)

10+ Year Member



There was a converstion on these boards a little while back that I read about the insecurity of "Mail this page to a friend" links. They are abused by spammers to send thousands of emails through your website. Setting things up the way you describe would open up your site to such abuse. You would need to set up some kind of check to be sure the same IP cannot send thousands of messages through your web form.

- Carl

tombola

11:18 pm on Feb 6, 2004 (gmt 0)

10+ Year Member



Jon_King, if you want to send an email message to the person who filled out your form, and if you are using Matt's formmail script, you can do the following:

There is a subroutine called "send_mail".
This subroutine sends an email to you everytime somebody fills out the form on your site.
To send a thank you email to that person, you can insert the following lines after the line "close (MAIL);"

open(MAIL,"¦$mailprog");
print MAIL "To: $Config{'email'}
print MAIL "From: $Config{'recipient'}\n";
print MAIL "Subject: Thank you for contacting us'\n\n";
print MAIL "Here comes your text...\n\n";
print MAIL "Regards,\n";
print MAIL "[your name]\n\n";
close (MAIL);

Don't forget to change the ¦ character ;-)

Jon_King

1:51 am on Feb 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Wonderful Tombola. Thank you so much.

Jon