Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 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
3 years ago

  • Keywords reporter-feedback added

Hi @kanhaiya122108, welcome to Trac!

Let us know whether your issue is fixed after following this PHPMailer troubleshooting guide on this error.

Version 0, edited 3 years ago by costdev (next)

#2 @costdev
3 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.