How to send email in php
--------------------------------------mail function---------------------------------------
$message .="This is a notice that before of some days of expiry your domain generated on ".date("Y-m-d").".\r\n";
$message .= "Purchasing date :\t" . $row['dt_purchase'] ."\r\nExpiry Date :\t" . $row['dt_exp'] . "\r\nDescription :\t" . $row['description'] . ", \r\n";
$to = $row2['email'];
$subject = "Domain Expire Alert";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=utf-8\r\n";
$headers .= "From: reply <admin@induswebi.com>\r\n";
$headers .= "Reply-To: admin\r\n";
$headers .= "X-mailer: php/" . phpversion();
mail($to, $subject, $message, $headers);
----------------------------------------end--------------------------------------------------------
Comments
Post a Comment