wordpress - wp_email is not working if I am including header in function -
i using wordpress function wp_mail()
send email. following function working fine
$send_email= wp_mail( $to, ' succesfully applied', $message);
if including $headers
not working. following code
$headers=array("from: test <test@gmail.com>"); $send_email= wp_mail( $to, 'succesfully applied', $message, $headers );
you have use:
$headers = 'from: name <test@gmail.com>' . "\r\n";
to send mail in wordpress.
Comments
Post a Comment