Sending HTML Email with PHP

this simple code lines will help you sending html email.

//change this to your email.
$to="name@domain.com";

$subject='Hello! This is Sending   HTML email';  
$message="

  
    
I am reciving HTML email......
Thanks Ramesh!


Now you Can send HTML Email
Regards
Ramesh Thanneeru "; $headers = "From: info@domain.com\r\n"; //options to send to cc+bcc $headers .= "Cc: email@domain.com"; $headers .= "Bcc: email@domain.com"; $headers .= "Reply-To: email@domain.com\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; mail($to, $subject, $message, $headers);

1 comments:

Post a Comment