-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF attachment is missing in e-mails #3
Comments
I'm not sure whether this issue is caused by webform2pdf or one of the mail modules (e. g. look at backdrop-contrib/mimemail#25). So I will try other mail engines like PHP mailer to check this out. |
I had the same problem, but found a workaround: let users download the PDF. Put this one into the confirmation e-mail body field, make sure that it has an access token
Hope this helps... |
@mazzech I think that shouldn't be a workaround. Because of Europe's GDPR it won't be compliant to have public access to these documents. |
The access token makes it secure enough for my purposes. Any webform submission can be accessed through a tokenized URL. I just thought I share it if anyone is interested;-) |
So I just tried this out, setting up a simple form on a live Backdrop site and a simple attached PDF and it worked: I received the email with the attached PDF, and the PDF was valid (opened and contained contents). The raw content of the mail body looked like this:
Could you try setting up the simplest possible form (like, 1 field) and the simplest possible PDF (e.g., just a text header and default content) and see if that works? Maybe we can narrow down the issue you're seeing. |
Hi @bugfolder, thank you for chiming in... my comment was not be clear enough... I was talking about sending HTML(!) mails with attached PDF (which did not work). It works perfectly when sending text-only mails from the webform module, but this was not an option in my project, for a number of reasons. |
OK, thanks for clarifying. As a point of reference, (a) which HTML mail module(s) were you using, and (b) had you previously successfully used the D7 version(s) of those modules with D7 Webform2PDF? |
Hi @bugfolder, I use Mime Mail for getting the HTML mails created, and no, I never tried this on D7... but here's an interesting one: https://www.drupal.org/project/webform2pdf/issues/2911898 and here https://www.drupal.org/project/webform2pdf/issues/2914369 |
Hi @mazzech, thanks for those links. They're interesting, but even with installing and using the Mime Mail module, I'm still getting PDFs successfully generated, attached, and received, now with HTML mail. Here's what I have for the Webform module settings: Here's the Mime Mail module settings: And here's the individual webform email settings: The result is successfully sent and is received as an email with a valid PDF attachment. Here's the top of the email body:
Now, there appears to be something amiss because although I have selected "Full HTML" as the Mime Mail setting, the HTML tags are getting stripped out of of the text/html content. But the PDF attachment is coming through. So, could you compare your settings with what I have above, see if there are differences, and/or if any of those differences have any effect? |
There was a bug within mimemail. There's a PR for it. |
Doing a bit of housekeeping, since it appears the underlying issue was in the MimeMail module, I'm closing this issue. |
When PDF attachment is actived it won't be sent. The recipient only gets a lot of unreadable symbols at the end of his/her mail.
I tried MIME mail and SMTP mail in combination with Mail System.
Note: This was further mentioned at #1 but I think it's a different issue.
The text was updated successfully, but these errors were encountered: