WPForms + WP Mail SMTP – Empty Message Error
-
Hello,
I’m using WPForms latest v1.8.6.2 along with WP Mail SMTP latest v3.11.0. However, I’ve noticed that despite the WP Mail SMTP test mail tool works, WPForms can’t send form mails.
I’ve tracked down and discovered the issue by turning on WPForms logs. When I send a form message I get the following error:
[WPForms\Emails\Mailer] Empty message.
I’ve found a fix, it is something related to the {all_fields} smart tag and templates. Using the following snippet and selecting the ‘Legacy’ email template allowed emails to work again
// Revert to legacy ‘HTML’ email template
$settings = (array) get_option( ‘wpforms_settings’, [] );
$settings[ ’email-template’ ] = ‘default’;
update_option( ‘wpforms_settings’, $settings );Can you please verify this and fix so we can use other templates along with the {all_fields} smart tag?
Thanks.
- The topic ‘WPForms + WP Mail SMTP – Empty Message Error’ is closed to new replies.