Email attachments are not being sent as expected, at least in a webform submissions scenario.
Steps to reproduce:
- Create a webform with a file upload element
- Configure that webform to send out submissions with uploaded files as attachments on the submission email
- Fill out the webform with an uploaded file
The following error will appear:
Warning: file_exists() expects parameter 1 to be a valid path, array given in Drupal\mailgun\Plugin\Mail\MailgunMail->mail() (line 203 of /app/docroot/modules/contrib/mailgun/src/Plugin/Mail/MailgunMail.php)
and no attachment will be present on the email that is sent out.
Note: I haven't tested this on other email attachments, only webforms.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3050525-2.patch | 1.29 KB | marcoscano |
|
Comments
Comment #2
marcoscanoThis seems to solve the issue for me.
Comment #3
AID_UA CreditAttribution: AID_UA commentedTested. It works for me too.
Comment #4
pcambraThis works great, I think a separate issue should be opened to support 'filecontent' as well (https://github.com/mailgun/mailgun-php/blob/master/doc/attachments.md)
Comment #6
MatroskeenCommitted to 8.x-1.x.
Thanks!