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

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -