Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
With the newest release of Webform (4.17) - SMTP Authentication support no longer sends attachments with webform. I found the code in the webform module that was removed that prevented this:
In the component/file.inc file between lines 502 and 503, the following was removed (since the current version of mimemail no longer needs it):
// This is necessary until the next release of mimemail is out, see #1388786: mimemail_html_body fails to retrieve file's URI.
$file['filepath'] = $file['uri'];$file['filepath'] = $file['uri'];
SMTP Authentication uses the 'filepath' information to check on attaching a file (line 489 of smtp.mail.inc). This will need to be rehandled in SMTP Authentication Support to fix the issue.
Comment | File | Size | Author |
---|---|---|---|
#4 | smtp-filepath_uri-2966816-27-D7.patch | 812 bytes | Liam Morland |
|
Comments
Comment #2
dcamburn CreditAttribution: dcamburn commentedComment #3
dcamburn CreditAttribution: dcamburn commentedComment #4
Liam MorlandComment #5
retiredpro CreditAttribution: retiredpro commentedThanks for the patch, Liam. This patch works for me. I'm using the latest releases of the following modules:
Webform 7.x-4.18
SMTP 7.x-1.7
MIME Mail 7.x-1.1
Mail System 7.x-2.35
Comment #6
dzepol CreditAttribution: dzepol commentedThanks. Confirming this patch applies correctly and fixes the problem for me too.
Comment #7
Chris Matthews CreditAttribution: Chris Matthews commentedThe patch to smtp.module in #4 applied cleanly to the latest 7.x-1.x-dev snapshot and also fixes this issue for me so with three reviews/tests I'm changing the status to RTBC.
Comment #8
aubjr_drupal CreditAttribution: aubjr_drupal as a volunteer and commentedAlso tested this patch. It works for our sites.
Comment #9
aubjr_drupal CreditAttribution: aubjr_drupal as a volunteer and commentedAlso tested this patch. It works for our sites.
Comment #10
jroberts CreditAttribution: jroberts at DesignHammer commentedThis patch applied cleanly to our sites using:
SMTP 7.x-1.7
Webform 7.x-4.18
MIME Mail 7.x-1.1
Mail System 7.x-2.34
and resolved the attachment issue.
Comment #11
sheshsharma CreditAttribution: sheshsharma commentedtested this patch. it work for our site
Comment #12
aubjr_drupal CreditAttribution: aubjr_drupal as a volunteer and commentedIf there are any maintainers for this module left around, can you please apply this patch for us and at least get it into the dev branch?
Comment #13
Liam MorlandThere are 18 RTBC issues and no commits for 11 months. We probably need someone new to step-up to help with maintenance.
Comment #14
Chris Matthews CreditAttribution: Chris Matthews commentedComment #15
wundo CreditAttribution: wundo at Chuva Inc. commentedComment #16
wundo CreditAttribution: wundo at Chuva Inc. commentedComment #18
wundo CreditAttribution: wundo at Chuva Inc. commented