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.
Issue with email attachment
Created webform for job application. In that webform 1 field for upload resume and one for upload portfolio.
After submitting form, mail will send to both user and admin. Admin want to get all details of the fields filled by user. I downloaded and configured Webform module, mail system, mime mail. Now admin is getting mail but he can't open the file got in mail (see the attached png) If the admin is logged to drupal site then he can see the attached pdf. The attached image is not sending, only label is displaying in mail no attachment.
Thanks in advance
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe issue is that anonymous users can't access private file uploads. @see https://www.drupal.org/psa-2016-003
To attach upload files to a webform email, you will need to install and configure Swiftmailer.
Comment #3
steniya CreditAttribution: steniya commentedSwiftmailer module is also used
I've been struggling with an issue today that I just can't seem to figure out.
I have a webform that includes a file upload that I want to email upon submission.
The email sends correctly (using MIMEmail modules) but there is no attachment.
The webform is for job application.The user will upload the resume and portfolio. The hr and manager want to get mail along with attachment. Now the issue is the who ever logged into the site only can see the attachment when click on the link. How to sent attachment from private folder as attachment not just in link(want proper attachment)
Check the field sent all attachment in email settings of webform.
I'm running drupal 8. Used modules are webform, mime mail, mail system and also used swift mailer
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #6
anpolimusComment #7
RicardoPeters CreditAttribution: RicardoPeters as a volunteer commentedI ran into the same issue, only to find out later that it was a misconfiguration on my end. The mailsystem was not been setup with the swiftmailer instance (/admin/config/system/mailsystem). After I corrected this, the attachments were sent as expected.
Hope this helps.
Comment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@everyone I think we desperately need a "How to debug webform email issues?" page in the FAQ.
Comment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented