Page 1 of 1

Posted: Sat Jul 24, 2004 8:43 am
by boxkites
Hallo.
I am fairly new to this and have read a few post relating to my question first. I do not know if the information in this post is suitable for my intended purposes. Perhaps it could be tweeked a bit to suit.

I would like to have a check button on my contact form that lets visitors have the option to send themselves a copy of the contact email.
I know this can be done without the option by using bcc. But I have no idea how to make the checkbox send an copy when checked or not send when unchecked.
Can anybody help me please?

Posted: Sat Jul 24, 2004 9:33 am
by Weirdan
Moderatorial: Please try to keep one topic in a thread. Don't hijack others' threads

Posted: Sat Jul 24, 2004 10:54 am
by lolpix
You could do some thing like...

mail(mail message to site owner);

if ($bcc == TRUE) mail(mail copy of message to author);

Posted: Sat Jul 24, 2004 11:21 am
by feyd
following lolpix's idea a little, you could check against the checkbox being selected. When selected, you can simply add a Bcc to the header component of the mail call which should take care of it.

Posted: Mon Jul 26, 2004 7:04 am
by boxkites
Hi All
Thanks for the info. I have got it working just fine thanks to you guys.