wp mail function
-
Hi
I have the following code for mail. But when I check mail then I can see “WordPress” under from section. HOw could I see the name of the actual sender under from section?
Could anybody please help me?
<?php //$to = $Your_Friend_Email;
$admin_email = get_bloginfo(‘admin_email’);
$to= $admin_email;
$subject=$Subject;$headers = ‘From: ‘. $Your_Email . “\r\n” .
‘Reply-To: ‘. $Your_Email . “\r\n” .
‘X-Mailer: PHP/’ . phpversion();$headers .= ‘MIME-Version: 1.0’ . “\r\n”;
$headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n”;
wp_mail($to, $subject, $requested_body, $headers);?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wp mail function’ is closed to new replies.