{"id":60309,"date":"2016-05-11T11:42:47","date_gmt":"2016-05-11T11:42:47","guid":{"rendered":"https:\/\/br.wordpress.org\/support\/topic\/wp-notification-emails-not-working\/"},"modified":"2016-08-06T01:46:26","modified_gmt":"2016-08-06T01:46:26","slug":"wp-notification-emails-not-working","status":"closed","type":"topic","link":"https:\/\/br.wordpress.org\/support\/topic\/wp-notification-emails-not-working\/","title":{"rendered":"WP notification emails not working"},"content":{"rendered":"<p>I have an issue related to email notifications since I moved to a new Brazilian host due to difficulties of host support. Actually, my host is the best of all in Brazil (Locaweb).<\/p>\n<p>Every time I need to upgrade WP, WP stops sending notification emails. The only way to make it work, is installing the plugin WP-MAIL-SMTP, creating a specific email account for this purpose and making a modification to the file &#8220;\/public_html\/wp-includes\/class-phpmailer.php&#8221; as described below:<\/p>\n<pre><code>protected function smtpSend($header, $body) {\n(...)\n\n     if (&#039;&#039; == $this-&gt;Sender) {\n          $smtp_from = $this-&gt;From;\n     } else {\n          $smtp_from = $this-&gt;Sender;\n     }\n     \/\/Modification (Begin) - Line of code added\n     $smtp_from = &quot;contato@emailaccountdomain.com.br\n     \/\/Modification (End) - Line of code added\n\n(...)<\/code><\/pre>\n<p>Note that, PHP function mail() is activated on the host and working as well.<\/p>\n","protected":false},"template":"","class_list":["post-60309","topic","type-topic","status-closed","hentry","topic-tag-emaiil-notifications","topic-tag-not-working","topic-tag-wp-email-notifications","topic-tag-wp-mail-smtp"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/60309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/60309\/revisions"}],"wp:attachment":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=60309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}