Using Webform and Mimemail to send HTML emails and uploaded files attached to emails.

When submitting the form, the file is not attached to the email. The box is ticked.

enter image description here

If you edit the submitted submission and click 'resend email', it attaches the PDF file to the email.

enter image description here

There are no errors on dblog.

How do I attach the files to the emails when the user submits the form with uploaded files?

  • Some permission maybe? – leymannx Jul 29 '19 at 20:53
  • Also, it may be worth checking if the email is being generated and sent before the drupal file system has actually finished saving the file. You may be able to use rules to delay/trigger the email notification. – Anson W Han Jul 29 '19 at 23:27
  • So I checked the permissions, there was Mimemail permission called Send arbitrary files, but it still didn't do nothing. I ended up googling to this drupal.org/project/webform_scheduled_export/issues/… and it gave me a hint to set webform files directory from private to public. That seemed to have fixed it. How do I mark this as answered? – user3108268 Jul 30 '19 at 9:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.