Jetpack email sharing compatibility
-
Unfortunately, the Jetpack developers are being rather difficult and insisting on setting the “From:” header of post sharing emails. This causes sharing emails to come from
[email protected]
, instead of the address configured in the SMTP Mailer settings.See https://github.com/Automattic/jetpack/issues/5621
To get around this, it will be good if the plugin contained the following lines during initializationj (successfully tested):
add_filter( 'wp_mail_from', 'smtp_mailer_from', 1 ); function smtp_mailer_from() { $options = smtp_mailer_get_option(); return $options['from_email']; } add_filter( 'wp_mail_from_name', 'smtp_mailer_from_name', 1 ); function smtp_mailer_from_name() { $options = smtp_mailer_get_option(); return $options['from_name']; }
- The topic ‘Jetpack email sharing compatibility’ is closed to new replies.