PDF's are not being attached to emails

Formidable Forms
31 October, 2025 06:36:44
GeekDimm
Topics: 4
Messages: 10
Hello
.
For some reason, the PDFs are not being attached to the email. I am using the following shortcodes in the email body as below.
We haven't had an issue until now with the only change to the site being the installation of the plugin "Wishlist Member" which I doubt will affect your plugin. The e2pdf plugin and Formidable Forms plugin are both up to date.

31 October, 2025 07:04:17
GeekDimm
Topics: 4
Messages: 10
Also, I can export data to PDF under "E2Pdf"→ "Create PDF"
31 October, 2025 08:48:22
E2Pdf
Support
Topics: 7
Messages: 3566
Hello,

Could you please clarify a few details:

- We noticed that you are also using the [e2pdf-save] shortcode. Does it still save the PDF upon submission?

- Do you have any global actions configured? https://e2pdf.com/docs/actions/global


We would really appreciate your feedback at WordPress.org!
31 October, 2025 09:12:33
GeekDimm
Topics: 4
Messages: 10
Hi there

- Yes the pdf's are being saved in the default location

- No global actions on the templates.

Thanks you
31 October, 2025 09:24:59
E2Pdf
Support
Topics: 7
Messages: 3566
If the PDF is being saved successfully, then the issue may be related to the email sending process or a third-party mail provider, if one is being used. Are you perhaps using any plugins that could affect email sending, such as asynchronous mailing plugins?
We would really appreciate your feedback at WordPress.org!
31 October, 2025 09:27:27
GeekDimm
Topics: 4
Messages: 10
We are using WP Mail SMTP
31 October, 2025 09:38:11
E2Pdf
Support
Topics: 7
Messages: 3566
Could you please check whether the Optimize Email Sending option is enabled: https://wpmailsmtp.com/docs/a-complete-guide-to-miscellaneous-settings/#Optimize_Email_Sending.

If yes, please try to modify your shortcodes:

From:
[e2pdf-attachment id="4"][e2pdf-save id="4"]

To:
[e2pdf-save id="4" attachment="true"]
We would really appreciate your feedback at WordPress.org!
31 October, 2025 11:03:18
GeekDimm
Topics: 4
Messages: 10
Seems to be working now, thank you very much. Would you please mind explaining what the issue was, just so I can understand :)
31 October, 2025 11:11:43
E2Pdf
Support
Topics: 7
Messages: 3566
The issue is related to asynchronous mail sending.

By default, the [e2pdf-attachment] shortcode creates a temporary PDF when the mail action is triggered and removes it once the mail has been successfully sent.

However, when the async mail option is enabled, it initiates a separate background task and notifies Formidable Forms that the email has been sent, even though the actual sending process is still in progress. As a result, the temporary file generated during form submission is deleted before the email is actually sent - which is why the attachment is missing at the time of delivery.

When you use [e2pdf-save id="4" attachment="true"], the PDF is stored permanently on the server and used as an attachment, instead of being created temporarily. This prevents it from being deleted after the form is submitted.

We would really appreciate your feedback at WordPress.org!
31 October, 2025 11:26:54
GeekDimm
Topics: 4
Messages: 10
I understand now & thank you again for the amazing support.