This is a discussion on Sending to 2 email addresses using the mail function? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hello, Is it possible to send form data to 2 email addresses simultaneously using the mail function? Or is there ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
"Chris" <teddymaflu_nospam@fastmail.fm> wrote in message news:424c5be4$0$7644$626a14ce@news.free.fr... > Hello, > > Is it possible to send form data to 2 email addresses simultaneously > using the mail function? Or is there another PHP function for that? > > Thank you for your help. > > Cheers > > Chris $mail_to = "webmaster@isp.com,luke@isp.com,sparks@isp.com "; $mail_subj = "New ISP Signup"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: webmaster@isp.com\r\n"; $mail_body = "<b>Payment</b> Made By <snip>"; mail($mail_to,$mail_subj,$mail_body,$headers); or alternatively $headers .= "BCC: admin@$DomainName\r\n"; $headers .= "CC: $current_email\r\n"; Or a mixture of them all! hth, John T. Jarrett |
![]() |
| Thread Tools | |
| Display Modes | |
|
|