Blind carbon Copy

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
alwoodman
Forum Newbie
Posts: 6
Joined: Thu Oct 07, 2004 3:59 pm
Location: Swansea

Blind carbon Copy

Post 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]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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";
alwoodman
Forum Newbie
Posts: 6
Joined: Thu Oct 07, 2004 3:59 pm
Location: Swansea

whats the code tags for then?

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

read the linked thread.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
Post Reply