Page 1 of 1

Contact form send notification to sender and recepient

Posted: Sun Oct 15, 2006 10:40 am
by greasser
In the tag 'function.contact_form.php' i'm missing the possibility to send a message to both the webmaster as the visitor who fills out the form. A sort of notification to the visitor to let them know what information was filled out in the form.

I was looking in the code myself and know dat I have to moderate is in this part of the code, but could find out what to add/change.

Code: Select all

  		elseif (@mail($to, $subject, $extra)) {
			echo '<div class="formMessage"><b><font color = "red" size="4"> Uw bericht is succesvol verzonden!</b></div></font>' . "\n";
			return;
It must be someting like this.

Code: Select all

elseif (@mail($email, $subject, $extra))

But I don't know where to put it, and what the code for the whole script is.

Re: Contact form send notification to sender and recepient

Posted: Sun Oct 15, 2006 11:50 am
by Dee
Be aware that allowing people to fill in an E-mail address and a message to send (to it) will create a possibility for others to send spam through your site/contact form.