Prepare for your Next Interview
This is a discussion on send email using php within the PHP forums, part of the Web Development category; 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 ...
|
|||
|
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 |
| The Following User Says Thank You to psuresh1982 For This Useful Post: | ||
| Sponsored Links |
|
|||
|
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 <abc@abc.com>, def <def@def.com>' . "\r\n"; $headers .= 'From: Me <xyz@xyz.com>' . "\r\n"; $headers .= 'Cc: pqr@pqr.com' . "\r\n"; $headers .= 'Bcc: pqr@pqr.com' . "\r\n"; // Mail it mail($to, $subject, $message, $headers); |
| The Following User Says Thank You to ravi_shekhar80 For This Useful Post: | ||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP Code to email HTML Page along with PDF Attachment | Shivanna | PHP | 0 | 10-11-2006 05:57 AM |
| About Email | blenda | Interviews | 1 | 08-14-2006 05:14 AM |