#55631 closed defect (bug) (invalid)
Could not instantiate mail function.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Keywords: | ||
| Focuses: | Cc: |
Description
Recently I'm getting the following error.
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] => testgmail@gmail.com
)
[subject] => The subject
[message] => The email body content
[headers] => Array
(
)
[attachments] => Array
(
)
[phpmailer_exception_code] => 2
)
)
[additional_data:protected] => Array
(
)
)
I have changed the 'To' email for example above. I also check with hosting and they have mail() enable.
waiting for response.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Hi @kanhaiya122108, welcome to Trac!
Trac is for the development of WordPress Core, whereas this appears to be a support issue.
Your issue may be fixed after you/your host follow this PHPMailer troubleshooting guide on this error.
If not, please reach out to the folks on the support forums.
I'll close this ticket as
invalid- not because your issue is invalid, it's just the status used when there isn't any action for us to take here on Trac.