Forum Moderators: coopster
I build a site, i am beginner.
<snip>
There is a form.
I use phpmail to send the form to a mail adress.
But i need send a copy to the sender, this is a acknoledgement. (Copy of the original message).
How can i clear up this?
marrci
[edited by: dreamcatcher at 7:48 pm (utc) on Nov. 12, 2009]
[edit reason] No Urls Please. See TOS. [/edit]
A cheesy but easy method is to just append the "to" address with the submittor's email.
$to = 'admin@example.com';
$to .= ",$email";
OF course, you have to validate the email, make sure it's not being attacked, etc., in either case.
If you are a beginner, it is best not to write your own PHP forms handling and email-sending code, unless it's only to learn how, but not use on a live website.
NMS FormMail is a free script you can use, which cannot be tricked into sending spam to other people.