Quantcast
Channel: WordPress.org Forums » [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Support
Viewing all articles
Browse latest Browse all 5023

casiepa on "wp-mail-smtp does not work on wordpress 4.3"

$
0
0

I'm on 4.3 and all works fine !
I'm using the standard plugin however I had to add the following filters to make sure the 'FROM' was correctly set for another issue. I have added these lines into my own plugin.
Have a try and let me know if it helped for you.
Pascal.

/**
* Since the install of WP-Mail-SMTP we need to make sure the FROM is the same as the one specified in the plugin
* These filters will overwrite any FROM send by other plugins.
*/
add_filter('wp_mail_from','custom_wp_mail_from');
function custom_wp_mail_from($email) {
	return get_option('mail_from');
}
add_filter('wp_mail_from_name','custom_wp_mail_from_name');
function custom_wp_mail_from_name($name) {
	return get_option('mail_from_name');
}

Viewing all articles
Browse latest Browse all 5023

Trending Articles