Quantcast
Channel: WordPress.org Forums » [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Support
Viewing all articles
Browse latest Browse all 5028

WP Mail SMTP Version 1.4.2 stopped sending emails

$
0
0

Replies: 0

I have a plugin that uses wp_mail() function to send emails on form errors. I have WP Mail SMTP plugin installed as well to use my custom SMTP settings.

Everything was working great for months with WP Mail SMTP version 0.11.1. But ever since I updated the plugin to version 1.4.2, my emails have stopped working.

From what I have figured out, wp_mail() is not working inside my plugin only. If I keep it anywhere like in theme files etc, the email is sent immediately. But from inside my plugin, I get this exception every time:

  "errors": {
    "wp_mail_failed": [
      "Could not instantiate mail function."
    ]
  },
  "error_data": {
    "wp_mail_failed": {
      "to": [
        "oibrahim@folio3.com"
      ],
      "subject": "Form Error",
      "message": "<dl><dt>Error Logged:<\/dt> <dd>{\"MembershipNumber\":null,\"Success\":false,\"Message\":\"The combination is incorrect\",\"contactInfo\":{\"PrimaryContactNumber\":null,\"AlternateNumber\":null,\"MobileNumber\":null,\"OtherPhone1\":null,\"Email\":null},\"membership\":{\"EffectiveDate\":null,\"ExpiryDate\":null,\"planInfo\":null,\"MembershipSubProgram\":null},\"address\":{\"HomeAddress\":null,\"MailingAddress\":null,\"BillingAddress\":null},\"slxConstantInfo\":[],\"Token\":null}<\/dd><dt>Timestamp:<\/dt> <dd>Monday, April 22nd, 2019 @ 03:16:30 PM<\/dd><dt>Referrer:<\/dt> <dd>renew\/step1<\/dd><dt>User:<\/dt> <dd> \n<br>\n<br>\n<br>\n<\/dd><\/dl>",
      "headers": [

      ],
      "attachments": [

      ],
      "phpmailer_exception_code": 2
    }
  }
}

If I downgrade the WP Mail SMTP plugin, things start working fine again. So its a sure shot issue with the plugin. Maybe in my plugin where I call the wp_mail() function, the settings of WP Mail SMTP are not already loaded or something like that.

Any quick help will be really appreciated since I have this code running on a production site. Thanks in advance!

Just to add some details, WP Mail SMTP test email is running fine !

  • This topic was modified 32 minutes ago by Osama Ibrahim. Reason: Details Added

Viewing all articles
Browse latest Browse all 5028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>