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

CommentFileSizeAuthor
error.png9.21 KBsteniya
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

steniya created an issue. See original summary.

jrockowitz’s picture

Status: Active » Closed (works as designed)

The 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.

steniya’s picture

Swiftmailer 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

jrockowitz’s picture

Status: Closed (works as designed) » Needs review
jrockowitz’s picture

Status: Needs review » Needs work
anpolimus’s picture

Issue tags: +KyivCampCS17
RicardoPeters’s picture

I 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.

jrockowitz’s picture

@everyone I think we desperately need a "How to debug webform email issues?" page in the FAQ.

jrockowitz’s picture

Status: Needs work » Closed (works as designed)