After updating from webform 7.x-3.18 to 7.x-4.0-rc3, upon submitting any webforms, the following message was encountered: "Unable to send e-mail. Contact the site administrator if the problem persists." My site is currently running Drupal 7.

Mail modules setup being used as follows:
HTML Mail
Mail System
SMTP Authentication
Webform

A new HTML Mail module class, HTMLMailSystem__SmtpMailSystem, was created at Mail System settings, however, webform did not appear to recognise this setting and emails were still being sent through the default mail system.

With reference to New MIMEMail SMTP settings not recognized by Webform, the following line was added to line 4394 of the webform.module file:

$systems[] = 'HTMLMailSystem__SmtpMailSystem';

Comments

huijing’s picture

StatusFileSize
new526 bytes

Patch attached.

huijing’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: webform_htmlmail_smtp-2259375-1.patch, failed testing.

huijing’s picture

StatusFileSize
new422 bytes

Create patch using git diff on latest dev branch to resolve simpletest failure on step 5

FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch webform-htmlmail-mimemail-mail_system-compatibility-2200985-9.patch. Unable to apply patch. See the log in the details link for more information.

huijing’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 4: webform-htmlmail_smtp-2259375-4.patch, failed testing.

danchadwick’s picture

Status: Needs work » Fixed

Seems correct. Committed to 7.x-4.x and 8.x. Thank you for the patch.

  • Commit 868fb13 on 7.x-4.x by DanChadwick:
    Issue #2259375 by hj_chen: Fixed HTML Mail SMTP settings not recognized.
    
  • Commit 8e223cb on 8.x-4.x by DanChadwick:
    Issue #2259375 by hj_chen: Fixed HTML Mail SMTP settings not recognized.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.