I have configured the SMTP module to use AWS Simple Email Service. Sending the SMTP module test email works. As does every other email service from the web site including new user notifications, password resets, Core Contact Form, etc.
Webform email sending fails with the following error (debugging enabled on SMTP module)
...
SMTP -> get_lines(): $str is "334 [REDACTED] "
SMTP -> get_lines(): $data is "334 [REDACTED] "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 [REDACTED] "
SMTP -> get_lines(): $data is "334 [REDACTED] "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "235 Authentication successful. "
SMTP -> get_lines(): $data is "235 Authentication successful. "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 Ok "
SMTP -> get_lines(): $data is "250 Ok "
SMTP -> FROM SERVER:250 Ok
...
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "354 End data with . "
SMTP -> get_lines(): $data is "354 End data with . "
SMTP -> FROM SERVER:354 End data with .
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "554 Transaction failed: Missing '<' "
SMTP -> get_lines(): $data is "554 Transaction failed: Missing '<' "
SMTP -> FROM SERVER:554 Transaction failed: Missing '<'
SMTP -> ERROR: DATA not accepted from server: 554 Transaction failed: Missing '<'
SMTP Error: Data not accepted. Redirecting to http://mysite.local/form/...
I tried every combination of enabling and disabling HTML Emails in the SMTP settings as well as the webform email settings.
I tried creating new webforms, and using the built-in contact webform.
I tried other SMTP servers, and webform emails send just fine. For some reason AWS SES is more picky?
Comment | File | Size | Author |
---|---|---|---|
#11 | SMTP Authentication Support Webform Demo Site.png | 608.68 KB | jrockowitz |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedIs there any chance you could export and upload an example of a broken webform?
This would help us figure what is wrong with the generated email header.
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented#2937764: Decode Html entities in mail headers might be a related issue. Maybe you can test the patch associated with that ticket.
Comment #4
Shawn DeArmond CreditAttribution: Shawn DeArmond as a volunteer commentedHere's the webform export:
Unfortunately, #2937764: Decode Html entities in mail headers did not solve the problem for me.
Comment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedPlease export and attach a webform that can be used to duplicate the problem. We need to be able to replicate the generated email header and hopefully, something will be obviously wrong with it.
Keep in mind that we can only guess at what the problem is because we don't have an AWS instance to debug this issue with.
Comment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #7
gooddev CreditAttribution: gooddev commented@Shawn DeArmond did you find a Solution, i also have this issue with AWS SES and can't find any misconfiguration in webform. The testing-Mail from the SMTP-Modul is working.
Comment #8
Shawn DeArmond CreditAttribution: Shawn DeArmond as a volunteer commentedYes, I did find a solution. Basically, the SMTP module needed to have the default email address field filled out or else webforms wouldn't send email. Other systems send mail, but not webform. My solution was to simply fill out the default email address.
I still think it's a problem, but I do have a workaround.
Comment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@Shawn DeArmond Where does the default email address need to be filled out? The SMTP module or the Webform Module?
Comment #10
Shawn DeArmond CreditAttribution: Shawn DeArmond as a volunteer commentedSMTP module.
But for all other Drupal functions, the default email address setting is optional. Only Webform throws errors if the default email address is not set.
Comment #11
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe default email address that we are talking about is here /admin/config/system/smtp
I am able to send email from the default Contact webform (/form/contact) via SMTP using Gmail without any default email address.
Have you tested default Contact webform?
Comment #12
Shawn DeArmond CreditAttribution: Shawn DeArmond as a volunteer commentedI tested all Webforms, and they failed similarly. Note that I was using AWS SES, not Gmail, though. All other mail sending, including the Contact module, worked.
Comment #13
mr.baileysI'm also able to consistently reproduce this with all mails sent from a webform using SMTP/Amazon SES. The From-header sent to Amazon SES is clearly malformed (GMail might be more lenient accepting malformed headers?).
I think this is a bug in the SMTP-module rather than webform though, and have opened #2984144: Malformed "From"-header when sending through Amazon SES via SMTP.
Comment #14
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI marking this postponed in the hope that #2984144: Malformed "From"-header when sending through Amazon SES via SMTP will resolve this issue.
Comment #15
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented