Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#47827 new defect (bug)

wp_notify_moderator email error when Site Language is fr_CA

Reported by: zzzz4's profile zzzz4 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Mail Keywords:
Focuses: Cc:


WordPress version: 5.2.2
PHP version: 5.6.27
Hosting: GoDaddy

"Please moderate:" email is sent without issue when Site Language is en_US.
However, when Site Language is fr_CA, the following error occurs:

[04-Aug-2019 01:51:40 UTC] WP_Error Object
    [errors] => Array
            [wp_mail_failed] => Array
                    [0] => Could not instantiate mail function.


    [error_data] => Array
            [wp_mail_failed] => Array
                    [to] => Array
                            [0] =>

                    [subject] => [WPSite] Demande de modération pour « Foo »
                    [message] => Un nouveau commentaire sur l’article « Foo » attend votre approbation

Auteur : JoeUser (adresse IP :,
Adresse courriel :
Adresse web : 
Commentaire : 
Commentaire en français

L’approuver :
Le mettre dans la corbeille :
Le marquer comme indésirable :
En ce moment, 4 commentaires attendent vos approbations. Veuillez vous rendre sur le panneau de modération :

                    [headers] => Array

                    [attachments] => Array

                    [phpmailer_exception_code] => 2



Change History (1)

#1 @mattumd
5 years ago

There are few possible reasons:

1- check out your mail server settings. There might be a settings for language. Also, look at below link for similar error:

2- Check if you mail plugin has language or language encoding settings

3- If none works, either re-install your plugin or change your plugin. You can also look around to see if someone else in French language using the same plugin without any issue, meaning it might be a bug in the mail plugin itself.

Good luck


Note: See TracTickets for help on using tickets.