Triggered email subject line

I need to send a range of triggered emails to contacts and members. The emails differ in their content, which I set by passing an option parameter from code. Here’s an example.

Different emails need to have different subject lines. As best I can see from the Velo documentation, I can’t set the subject line using code, only the ${bodyText} value in the example above.


If I could set the subject line from code I would need only one email template for a range of emails; as it is I seem to need separate templates, one for each subject line.

Am I reading this right, or is there a way to set the subject from code?

It’s my understanding as well that you can’t set the headline using velo.

Thanks Simon. In one way it’s a nuisance, as I could reuse a single template for multiple emails. But thinking this through, having separate templates allows Wix to set up email tracking very easily through the Triggered Emails console - I suppose that’s why they do it that way.

You can set the subject as {{subject}}, then pass value subject: “XXXXXX”

Have you tried?