New answers tagged wp-mail
Your code looks okay to me. Instead check whether email working in other part of the website or not!! Use Postman SMTP Mailer/Email Log plugin to configure / test / debug your mail system.
It's look OK with : html_entity_decode wp_mail("firstname.lastname@example.org","new article : ".html_entity_decode($get_title),"The message is OK with é è à",$headers); Not so good, another try : wp_mail("email@example.com","new article : ".$post->post_title,"The message is OK with é è à",$headers);
A "$" character in my password seems to be guilty ... Fix the issue by replacing: $phpmailer->Password = "xxxxx$xx"; by $phpmailer->Password = 'xxxxx$xx';
Yes. You can. There is several filters what you mentioned in your question. You can do it with WP Mail SMTP plugin. This plugin have multiple settings such as: Sender Name, Sender Email. This stuff working with using filters which you've mentioned. You can also setup an external SMTP server which should be using to send all emails in WordPress.
Top 50 recent answers are included