Skip Navigation

[Resolved] WP Mail SMTP plugin + Toolset = won't send form notifications

This support ticket is created 2 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 15 replies, has 3 voices.

Last updated by jennZ 2 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#2314961

Just have to share an update, as this issue is RESOLVED. The WP Mail SMTP support team was fantastic and found this solution:

"What we discovered is that the Toolset plugin is overwritting the WP core global $phpmailer instance in this method: \CRED_Mail_Handler::send

The emails would work if that was not being overwritten.

The Toolset plugin does not appear to be checking for the WP 5.5 changed PHPMailer class.

So to resolve it, we had changed this line:

! is_a( $phpmailer, 'PHPMailer' )

Into this:

! ( is_a( $phpmailer, 'PHPMailer' ) || is_a( $phpmailer, '\PHPMailer\PHPMailer\PHPMailer' ) )

Once that was done, the emails were sent through our plugin."

The file that needs to be modified is wp-content/plugins/cred-frontend-editor/library/toolset/cred/embedded/classes/common/Mail_Handler.php

Just look for that line they changed, update it to the one they provided, and it works like a charm. Since I've seen a number of threads trying to sort this out, I thought it was worth sharing with the Toolset community. =)