Mautic Community Forums

Form File Uploads in E-Mail


is there a way to get the uploaded files from a form via e-mail?

The best solution would be to attach the files to the mail, but a direct link to the files would be acceptable also.
The latter should be possible if there would be a way to get the result entry ID in the mail, but I couldn’t find one.

Thank you!

Could I get an update on this, was it fixed? I need this same functionality.

Hi Jordan,

in the end I wrote a custom PHP script and set up a webhoook. If you are interested I could post some code snippets later.

That would be great! :slight_smile:

It seems bizarre that you can’t just do it within the send results email because each file gets a unique link

Hi Jordan,

you can find the script here:

Note that we are using sendgrid for sending mails. I’m sure it would also be possible to send the mails directly via mautic.

Also, this only works for exactly one form (the one you specify in line 27). You also have to find the form field IDs (Line 33-36). The easiest way to do that is inspecting the field in the form editor. You should find IDs like „mauticform_148“.

In mautic you have to set up the webhook by clicking the cog in the upper-right corner → Webhooks → New. Here you have to select the Form Submit Event and enter the url to webhook.php (

Hope that helps. Some PHP knowledge will be needed to get this running. Please let me know if you have any questions.