Contact form send notification to sender and recepient

Talk about new features for CMSMS and modules.
Post Reply

Is this a possible nice add on of the contact form tag?

no
0
No votes
yes
1
100%
 
Total votes: 1

greasser

Contact form send notification to sender and recepient

Post 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.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Contact form send notification to sender and recepient

Post 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.
Post Reply

Return to “Feature ideas”