how i can use Bcc in a PHP mail?

Discussion in 'PHP' started by Kyriakos, Dec 20, 2008.

  1. #1
    hi everyone,

    i have a PHP mail script and i want to sent a copy of this mail to myself using Bcc. my PHP script is this:
    <?php
    $to = "info@deft.gr";
    
    $subject = "PHP mail!";
    
    $message = "bla bla bla";
    
    $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
    $headers .= 'From: Sigma <info@sigma.gr>' . "\r\n";
    
    mail($to, $subject, $message, $headers);
    ?>
    PHP:
    can anybody help me?
     
    Kyriakos, Dec 20, 2008 IP
  2. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #2
    $headers .= 'Bcc: bcc@example.com' . "\r\n";
    PHP:
    Google and PHP.net would've given you the answers... Try using them next time.
     
    Danltn, Dec 20, 2008 IP