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

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

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

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -