-
Contributing Member
send email using php
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
-
Junior Member
Re: send email using php
// 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 , def ' . "\r\n";
$headers .= 'From: Me ' . "\r\n";
$headers .= 'Cc: pqr@pqr.com' . "\r\n";
$headers .= 'Bcc: pqr@pqr.com' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules