Attachment support for transactional emails
S
Suj
Any possibilities of enabling attachments for transactional emails?
Currently all attachments are stripped off automatically if you try to send transactional emails via SMTP relay. This doesn't help in situations like sending payment confirmation emails with the receipt as PDF attachments. This is just one example.
I understand adding attachment support may introduce other challenges and caveats for server where ED is installed, specifically running out of storage. And a novoice user might not be able to troubleshoot it.
But, probably you can add this as an optional feature, wherein let the server admins decide if they want to enable it or not. Easiest thing I can think of is enabling it by adding a variable in the docker file. Also, may be a cronjob to delete the old attachments and temp files stored on the server. And if adding this feature through admin panel, may be you add relevant warnings about the side effects and let the admin decide if they still want to enable it or not.
Blipblop
Likewise, we send invoices as PDF attachments from our ecommerce store.
Imho limiting the attachment size and having a time-limited storage policy with automatic deleting old attachments would mitigate issues.
EmailDelivery.com
Yes, the reason why it's not there is exactly what you guessed, it would be very easy for someone to blow their platform up with it.
However, we've received enough requests that this is really important to transactional users, that we're going to add support for this.
Unfortunately, it's not a trivial change at all; it's not something that can be done in a day, so we will be adding it when we get a chance, but it's going to be an undertaking, so it can't be done right away.
S
Suj
EmailDelivery.com: I appreciate you guys looking into this. :)
Will wait patiently for the attachment support to be added.
EmailDelivery.com
Suj: Purely out of curiosity can I ask for your use case? What attachments will you be sending?
S
Suj
EmailDelivery.com: It's mainly to send PDF copy of the invoice once customers places an order. And a second email is triggered as soon as the payment is marked completed. This second email has the PDF copy of the payment receipt attached to it.
We have a second brand where we sell licenses. Once the payment is cleared, we send pdf copy of the user guide along with their unique license.
The user guide is a static file. So here, we have the option to replace the attachment in the email with a downloadable link to the file. But for the first brand, we are relying on Mailgun directly because of the attachment limitation with ED.
EmailDelivery.com
Suj: Got it. Thanks for the comprehensive answer.
Bryan Konowitz
EmailDelivery.com Just wanted to followup to this and give it a bump on the 6 month anniversary of that comment 😆.
Upvoted this one long ago as well. Similar situation, I have many systems doing scenarios just like above. Most are simple user-initiated transactional sends for a quick csv or pdf of history info, invoices, etc, some with automated sending of static pdfs when a webhook or async task completes. Would be ideal to keep all of this centralized with my own self-hosted option instead of direct API integrations with third parties.
Any chance this will at least make it to in-progress in the near future?