Page 1 of 1

Blind carbon Copy

Posted: Fri Oct 08, 2004 11:39 am
by alwoodman
feyd | Please use

Code: Select all

tags when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]


How do i include a Blind Carbon Copy here to send the info to the hotel aswell?

Code: Select all

$recipient = "booking@mumbles.co.uk"; 
$subject = "Booking Enquiry Created for ".$_REQUEST['HotelName'].", ".date("d M, Y : H:n"); 
$body = "Booking for: $HotelName \n 
Booking ID: $BookingID \n

---Customer Information---
Name: $Prefix $FirstName $Surname
Cheers
Lee


feyd | Please use

Code: Select all

tags when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]

Posted: Fri Oct 08, 2004 11:43 am
by feyd
Please use

Code: Select all

tags when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color][/size]

it's an addition to the headers sent to the mail function.

Code: Select all

$headers = "BCC: address_to_copy@email.com\r\n";

whats the code tags for then?

Posted: Fri Oct 08, 2004 11:59 am
by alwoodman
sorry for not using the php tags do i have to do

Code: Select all

<?php ?>
?

Cheers for the BCC info anyway

Lee

Posted: Fri Oct 08, 2004 12:06 pm
by feyd
read the linked thread.

Posted: Sat Oct 09, 2004 5:17 am
by twigletmac
This may be influenced by your operating system and the version of PHP you are using - http://php.net/manual/en/function.mail.php