Send HTML in email via PHP

It is pretty simple. Leave the images on the server and send the PHP + CSS to them… $to = ‘[email protected]’; $subject=”Website Change Request”; $headers = “From: ” . strip_tags($_POST[‘req-email’]) . “\r\n”; $headers .= “Reply-To: ” . strip_tags($_POST[‘req-email’]) . “\r\n”; $headers .= “CC: [email protected]\r\n”; $headers .= “MIME-Version: 1.0\r\n”; $headers .= “Content-Type: text/html; charset=UTF-8\r\n”; $message=”<p><strong>This is … Read more

php form send email

First, Use this headers: <?php $headers = “MIME-Version: 1.0\r\n”; $headers .= “Content-type: text/html; charset=utf-8\r\n”; //Fom $headers .= “From: XXX XXXX XXXXX <[email protected]>\r\n”; //Reply $headers .= “Reply-To: [email protected]\r\n”; //Path $headers .= “Return-path: [email protected]\r\n”; //CC $headers .= “Cc: [email protected]\r\n”; //BBC $headers .= “Bcc: [email protected],[email protected]\r\n”; ?> Two, Read about PHPMailer and see the next code: And try with … Read more