RE: [PHP-WIN] Adding a cc to a PHP mail script...

From: Date: Mon, 19 Nov 2001 02:55:15 +0000
Subject: RE: [PHP-WIN] Adding a cc to a PHP mail script...
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-10490@lists.php.net to get a copy of this message
If you want to add additional email addresses to the 'To' list, use a comma seperated list: e.g. $to = "tony@domain.com, bob@home.org, eve@yak.net"; if you want to cc the email then add it to your headers: e.g. $mailheaders .= "Cc: someone@carboncopy.com\r\n"; HTH, D. > -----Original Message----- > From: Anthony Ritter [mailto:tony@gonefishingguideservice.com] > Sent: Monday, 19 November 2001 2:48 p.m. > To: php-windows@lists.php.net > Subject: [PHP-WIN] Adding a cc to a PHP mail script... > > > Is there any way to add an *additional* e-mail address - a cc > - besides the > one that is already in the $to variable below using the following PHP > script? > > Thanking all in advance. > Tony Ritter > .......................................... > > > <? > $msg="This e-mail is being sent from www site\n"; > $msg.="Sender's name: \t$sender_name\n"; > $msg.="Sender's e-mail:\t$sender_email\n"; > $msg.="Message:\t$message\n\n"; > $to="tony@gonefishingguideservice.com"; > $subject="Website Feedback"; > $mailheaders="From: My website<> \n"; > $mailheaders.="Reply to: $sender_email\n\n"; > mail($to,$subject,$msg,$mailheaders); > ?> > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.windows (#10490) next »