Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi Matt, The question is as simple as the title. I have my email eventlistener up and running, but would like to be able to set my email template's subject line to be equal to the order ID
Hi Victor,
The email subject line supports dynamic template functionality so you should be able to set it to something like
Order {Model.Id}
Where Model represents the model object you pass to the SendEmail method, so assuming that is an order, it will be output the order ID.
Model
SendEmail
You can access any properties on the model object in the template, even nested data
Thank you {Model.CustomerInfo.FirstName} for your order {Model.OrderNumber}
/Matt
PS Here's an issue on the issue tracker where this was suggested / implemented https://github.com/vendrhub/vendr/issues/107
Hi Matt, Alright, thank you very much. Got it working now!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Set subject line of email template programmatically
Hi Matt, The question is as simple as the title. I have my email eventlistener up and running, but would like to be able to set my email template's subject line to be equal to the order ID
Hi Victor,
The email subject line supports dynamic template functionality so you should be able to set it to something like
Where
Model
represents the model object you pass to theSendEmail
method, so assuming that is an order, it will be output the order ID.You can access any properties on the model object in the template, even nested data
/Matt
PS Here's an issue on the issue tracker where this was suggested / implemented https://github.com/vendrhub/vendr/issues/107
Hi Matt, Alright, thank you very much. Got it working now!
is working on a reply...