This is a discussion on "php contact form" within the PHP Forum section. This forum, and the thread "php contact form are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
php contact form
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
php contact form
Hello Forumz
I have this in my contact form. Its working but I want it to send a cc to a different email or to send to multiple emails. Can someone pliz help me?
|
|
|
|
|||
|
Re: php contact form
ou can user this function for sending mail:
mail($to, $subject, $body); and for some mail you can make an array and do this : $array=array("mail1","mail2","mail3"); $number=count($array); for($i=0 $i<$numberl $i++){ mail($array[$i+1], $subject, $body); } i think that it works, try. |
|
|||
|
Re: php contact form
You can also do this:
$to = 'joe@aol.com,mary@aol.com,henry@earthlink.net'); mail($to, $subject, $body); RalphF http://www.GoldRushWebHosting.com |
|
|||
|
Re: php contact form
Thanks guys that worked out fine. Is it possible to have a cc and bcc on it? cc is not that important because I can use the one above but a bcc would be something different from that. right?
|
|
|||
|
Re: php contact form
As far as I know, there is no way to specify a CC: or BCC: using the mail() function.
RalphF GoldRushWebHosting.com |
|
|||
|
Re: php contact form
you can send bcc and cc with mail(), see below:
Hope that helps |
![]() |
| Tags |
| contact form |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] PHP contact form redirect to same form | Posie | PHP Forum | 14 | Jan 29th, 2008 20:28 |
| help with asp contact form? | Ella | Classic ASP | 4 | Jan 2nd, 2008 00:45 |
| what is the best contact form | Phixon | Web Page Design | 10 | May 15th, 2007 18:47 |
| Contact us form help! | NurseJenny | PHP Forum | 10 | Jun 23rd, 2006 13:27 |
| Need Quote Form and Contact Form | Av8er | Flash & Multimedia Forum | 5 | Oct 30th, 2003 17:14 |