Send email in wordpress.
$contactfirstname ="lali";
// No need to make changes below this line.
$toadmin = "developwithjaspreet@gmail.com";
$adminmessage = 'You just got one visitor. Here is the detail below';
$noreply = 'noreply@jaspreet797386@gmail.com';
$headers = "From: " . $contactfirstname . "\r\n";
$headers .= "Reply-To: ". strip_tags($noreply) . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$headers = 'From: "' . $contactfirstname . '" <no-reply@randhirstudsios.com>' . "\r\n";
wp_mail( $toadmin, $contactfirstname, $adminmessage, $headers );
Comments
Post a Comment