PHP: Mail with HTML and mail() function.

<?php
include (“include/config.php”);

$fname=$_POST[‘name’];
$email=”From:”.$_POST[’email’];
$comp=$_POST[‘company’];
$msg1=$_POST[‘message’];

$tomail=”swapn_developers@yahoo.com”;
$msg=”Company Name : ” .$comp.”
“.”Message : ” .$msg1;

$headers = “From: $email\r\n”;
$headers .= “Content-type: text/html\r\n”;

mail($tomail,”Contact Us Message”,$msg,$headers);
?>


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *