Few chars getting replaced with ‘=’ in mail content in wp_mail()

Commenting couple of return statements and replacing them as suggested in the below link on wordpress.org worked for me, now the mails are sent properly and the equal sign ‘=’ issue is solved. Fixed by making following changes in wp-includes\class-phpmailer.php public function encodeQP($string, $line_max = 76) { // Use native function if it’s available (>= … Read more

Claim Listing functionality – how to send email to users when their claim has been approved or denied

Unfortunately, the developers didn’t give you any hooks in their code to allow for customization without hacking it. But all is not lost – there are some hooks in WP that you could use to trigger your emails. The ideal would be to trigger off the update_post_meta(). That function is simply a wrapper for update_metadata() … Read more

wp_mail line break not working

Modify the line that reads $headers .= ‘Content-type: text/html; charset=UTF-8’ . “\r\n”; to $headers .= ‘Content-Type: text/html; charset=ISO-8859-1″; and then use <br /> for the line breaks.

How to override the email function by using filters? [closed]

If Divi theme uses wp_mail() function (which most likely does), you can use the wp_mail filter to pass your own arguments to the function: function filter_divi_mail( $args ) { // Modify the options here $custom_mail = array( ‘to’ => $args[‘to’], ‘subject’ => $args[‘subject’], ‘message’ => $args[‘message’], ‘headers’ => $args[‘headers’], ‘attachments’ => $args[‘attachments’], ); // Return … Read more

Send an email when custom post type category is changed

Use the hooks added_term_relationship and deleted_term_relationships. These only fire when the relationship changes, as opposed to set_object_terms which always fires: function wpse_181090_object_terms_updated( $object_id ) { static $did = array(); // This function might fire multiple times for the same object, ensure it only runs once if ( ! isset( $did[ $object_id ] ) ) { … Read more

wp_mail function timing out

Well, this isn’t a full solution per se, but I would start by isolating whether the problem is the SQL queries or the wp_mail() call. If you comment out the wp_mail() line, you can get an idea of how long the function takes to run the queries and build the messages without trying to send … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)