Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#55631 closed defect (bug) (invalid)

Could not instantiate mail function.

Reported by: kanhaiya122108's profile kanhaiya122108 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Mail 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)

#1 @costdev
2 years ago

  • Keywords reporter-feedback added

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.

Last edited 2 years ago by costdev (previous) (diff)

#2 @costdev
2 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 5.9.3 deleted
Note: See TracTickets for help on using tickets.