hi,
i want to send a email using php with the headers and CC ...
if anyone have the code plz post here...otherwise plz tell me how can i send it ? i am a new learner of php.
--------------
suresh
Printable View
hi,
i want to send a email using php with the headers and CC ...
if anyone have the code plz post here...otherwise plz tell me how can i send it ? i am a new learner of php.
--------------
suresh
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: ABC <abc@abc.com>, def <def@def.com>' . "\r\n";
$headers .= 'From: Me <xyz@xyz.com>' . "\r\n";
$headers .= 'Cc: [email]pqr@pqr.com[/email]' . "\r\n";
$headers .= 'Bcc: [email]pqr@pqr.com[/email]' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);