QAds
Apple iPod nano 8 GB Siyah
$88.21
Apple iPad 16gb Wi-Fi
$448.97
Nikon D3000 10.2MP Digital SLR Camera with 18-55mm f/3.5-5.6G AF-S DX VR Nikkor Zoom Lens
$337.50
Samsung S5233 with 3 MP Camera, MP3 player
$136.29
:: HOME PHP How can I send email with PHP?
 
How can I send email with PHP?
How can I send email with PHP?
You can use below format to send email.

 
 
Code
$to = $email; // email you want to send email to
$subject = "Subject Here";
$headers = "MIME-Version: 1.0" . "\n";
$headers .= "Content-type: text/HTML; charset=iso-8559-1";
$headers .= "To: ".$receivername." <".$to.">" . "\n"; // Put receiver name and email
$headers .= "From: ".$fromname." <".$fromemail.">\n"."Reply-To: ".$replyemail."\n"; // Put who sends this email and also email address to reply
$content = "E-Mail content here";
if(@mail($to, $subject, $content, $headers )) { ... } // if email has been sent successfully
else { ... } // if Failed