I have created custom mail template and successfully send mail to the customer upon order complete.
I created new mail template from admin based on the custom one I added in code, to let the marketing team edit the mail and change style.
Now I need to get marketing team changes using the new template name but it gives error this mail template not found when I do
$transport = $transportBuilder->setTemplateIdentifier('custom_email_template');
Error: Email template 'custom_email_template' is not defined
Can I use the ID instead and how to set fall back if the template was deleted to send the template base file in my custom module?
Another query how to get the mail template preview in code as html string?
Thanks in advance.