I want to use a single webform to send download links with specific media files to visitors that fill out that form. For example on an URL like this:
The media parameter will be the ID of an media entity type like "Download". Now I want to send the mail with the name of the media entity and a link to the file of that entity.
How could I get this done? Mail handler and a custom Twig template is what I think about, but how do I get the data of the media entity? Any ideas? Thanks for every helpful comment ;)