Description
Can you please insert an example SQL Code for Email Templates?
This is the code I catched so far in a Live Presentation
INSERT INTO #__mail_templates (template_id, extension, "body", attachments, params)
VALUES
('system_template_1', 'system_plugin', 'SYSTEM TEMPLATE 1 MAIL BODY',
'{"tags": ["name", "email", "location", "messagehtml", "url", "contactname", "activate", "cancel"]}'),
('system_template_2', 'system_plugin', 'SYSTEM TEMPLATE 2 MAIL BODY',
'{"tags": ["sitename", "name", "email", "url", "contactname"]}'),
('system_template_3', 'system_plugin', 'SYSTEM TEMPLATE 3 MAIL BODY',
'{"tags": ["location", "url", "message", "bodyhtml", "contact",]}'),
('system_template_4', 'system_plugin', 'SYSTEM TEMPLATE 4 MAIL BODY',
'{"tags": ["email", "url", "contactname"]}'),
('system_template_5', 'system_plugin', 'SYSTEM TEMPLATE 5 MAIL BODY',
'{"tags": ["sitename", "contactname"]}'),
('system_template_6', 'system_plugin', 'SYSTEM TEMPLATE 6 MAIL BODY',
'{"tags": [ "sitename", "name", "email", "url", "contact"]}');
I hope the SQL is correct because I don't know how it should look like and how it works. Maybe it would be useful to know what the name of the file should be to have it automatically triggered and how to use the named tags.