RE: [PHP] Additional e-mail address in PHP script...
| From: | Martin Towell | Date: | Mon, 19 Nov 2001 00:45:27 +0000 |
| Subject: | RE: [PHP] Additional e-mail address in PHP script... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-75057@lists.php.net to get a copy of this message | ||
add:
$mailheaders.="CC: $other_email\n";
$mailheaders.="BCC: $other_email\n";
should also work but I haven't managed to get blind carbon copy to work for
me :(
-----Original Message-----
From: Anthony Ritter [mailto:tony@gonefishingguideservice.com]
Sent: Monday, November 19, 2001 12:49 PM
To: php-general@lists.php.net
Subject: [PHP] Additional e-mail address in PHP 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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net