Hi folks - Newbie question...

Q: Is there a way to add BCC and/or CC parameters to this simple email function?

If there is a better way to do this - please let me know....

Thanks in advance....


<?php
$Name = "test"; //senders name
$email = "t...@test.com"; //senders e-mail adress
$recipientname = "test";
$recipient = "j...@test.com"; //recipient
$mail_body = "test";
$subject = "test";
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields

$fullto = $recipientname . " <" . $recipient . ">";

ini_set('sendmail_from', 't...@test.com');

mail($fullto, $subject, $mail_body, $header); //mail command :)
?>


Thanks,
c...@hosting4days.com



Reply via email to