I want to send a MIME Message to Mailgun using the old SMTP API (not the REST API) inside an old Laravel 6 Project. I know that you can set the template variables to use by adding the 'X-Mailgun-Template-Variables' header to the MIME Message but i cannot find a way to set the template name (the name inside the Mailgun dashboard template section) to use.
At the moment i tried setting the name:
- via a 'X-Mailgun-Template' header variable
- via the 'X-Mailgun-Variables' as a variable named 'template'
- as the content of the body
- as a 'template' header variable
I also cannot find documentation on this subject in the Mailgun documentation or anywhere else on the web. Because of the way the project is organised, switching to the Mailgun SDK for mail delivery is not that easy.