Title: WP notification emails not working
Last modified: 6 agosto, 2016

---

# WP notification emails not working

 *  [andreuerj](https://br.wordpress.org/support/users/andreuerj/)
 * (@andreuerj)
 * [10 anos, 5 meses atrás](https://br.wordpress.org/support/topic/wp-notification-emails-not-working/)
 * 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).
 * 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 “/public_html/
   wp-includes/class-phpmailer.php” as described below:
 *     ```
       protected function smtpSend($header, $body) {
       (...)
   
            if ('' == $this->Sender) {
                 $smtp_from = $this->From;
            } else {
                 $smtp_from = $this->Sender;
            }
            //Modification (Begin) - Line of code added
            $smtp_from = "contato@emailaccountdomain.com.br
            //Modification (End) - Line of code added
   
       (...)
       ```
   
 * Note that, PHP function mail() is activated on the host and working as well.

Visualizando 2 respostas - 1 até 2 (de um total de 2)

 *  Moderador [Leo Baiano](https://br.wordpress.org/support/users/leobaiano/)
 * (@leobaiano)
 * [10 anos, 5 meses atrás](https://br.wordpress.org/support/topic/wp-notification-emails-not-working/#post-60454)
 * WordPress uses the registered e-mail Settings> General to send notifications.
   The registered email there has the same domain of your site and is a valid email?
   For example, the same email that you include this core file of WordPress?
 * A note, I would not say Locaweb is the best hosting company in Brazil, the real,
   if you search for e-mail sending errors in WordPress will see that the vast majority
   occurs Locaweb.
 *  Moderador [Claudio Sanches](https://br.wordpress.org/support/users/claudiosanches/)
 * (@claudiosanches)
 * [10 anos, 5 meses atrás](https://br.wordpress.org/support/topic/wp-notification-emails-not-working/#post-60458)
 * Este é o fórum em brasileiro e deve conversar aqui em português.
    Fechando este
   tópico por causa disso.

Visualizando 2 respostas - 1 até 2 (de um total de 2)

 O tópico ‘WP notification emails not working’ está fechado para novas respostas.

## Tags

 * [Emaiil notifications](https://br.wordpress.org/support/topic-tag/emaiil-notifications/)
 * [Not working](https://br.wordpress.org/support/topic-tag/not-working/)
 * [WP email notifications](https://br.wordpress.org/support/topic-tag/wp-email-notifications/)
 * [WP-Mail-SMTP](https://br.wordpress.org/support/topic-tag/wp-mail-smtp/)

 * Em: [Ajustando o WordPress](https://br.wordpress.org/support/forum/resolucao-de-problemas/)
 * 2 respostas
 * 3 participantes
 * Última resposta de: [Claudio Sanches](https://br.wordpress.org/support/users/claudiosanches/)
 * Última atividade: [10 anos, 5 meses atrás](https://br.wordpress.org/support/topic/wp-notification-emails-not-working/#post-60458)
 * Estado: não resolvido

## Tópicos

### Tópicos mais populares

### Tópicos sem respostas

### Tópicos não relacionados a suporte

### Tópicos resolvidos

### Tópicos não resolvidos

### Todos os tópicos
