- Issue created by @titacvetkovic
- πΊπΈUnited States jrockowitz Brooklyn, NY
Is " Include files as attachments" disabled or enabled?
- πΉπ·Turkey titacvetkovic
Thank you for replying Jacob! Well that's the strange thing: I don't get the Attachments section under Settings > Email / Handlers > Add email. So I am unable to enable "Include files as attachments". I tried all sorts: added a new email, updated the webform module, updated the webform_attachment module, uninstalled and reinstalled webform module, re-enabled the webform_attachment module, restarted DDEV, etc.
- πΊπΈUnited States jrockowitz Brooklyn, NY
If "Include files as attachments" is not checked, it means that something is not configured as expected.
@see https://git.drupalcode.org/project/webform/-/blob/6.3.x/src/Plugin/Webfo...
@see https://git.drupalcode.org/project/webform/-/blob/6.3.x/src/Plugin/Webfo...Either the email handler or the webform attachments is not setup.
You could try to
- Confirm that smtp is enabled.
- Make sure an attachment field is added to the form
- Experiment with adding a file upload to see if attachments are enabled.
- Upgrade to 6.3.x
- πΉπ·Turkey titacvetkovic
I can confirm all the below:
- SMTP is enabled and all set up.
- The attachment field is added to the form (I tested it with and without)
- I experimented with adding a file upload, so the attachments section was finally visible, but the "Include files as attachments" was inactive.
- I upgraded to 6.3.x.
I am in a bit of a rush, because the form is to register to an event. I wanted to attach the ICS file I generated for an Add to Calendar option. I'll just hardcode the link to the email body instead.
Thanks for the tips, though. Maybe it could be useful to have an option to simply include attachments without having to add an attachment field to the form.
- πΊπΈUnited States jrockowitz Brooklyn, NY
We should close this ticket as long as you have a workaround and no one else is reporting this issue.