Open kristoferlund opened 1 year ago
Sendgrid
When interacting with the service you should be able to submit a template and some data.
{user}
is replaced with Mohammad
Perhaps like this?
template = "welcome-email.md"
data = {
username: "Mohammad"
}
emailService.sendEmail(template, data);
@mohammadranjbarz sounds ok?
When interacting with the service you should be able to submit a template and some data.
- Template is a template key or a filename
- Data is merged with template, for example
{user}
is replaced withMohammad
Perhaps like this?
template = "welcome-email.md" data = { username: "Mohammad" } emailService.sendEmail(template, data);
@mohammadranjbarz sounds ok?
Yeah seems good, will look at it