praise icon indicating copy to clipboard operation
praise copied to clipboard

Send welcome email when creating a Praise community

Open kristoferlund opened this issue 2 years ago • 3 comments

  • [ ] Research email sender platform
  • [ ] Create API email sender service

kristoferlund avatar May 30 '23 13:05 kristoferlund

Sendgrid

kristoferlund avatar Jun 21 '23 06:06 kristoferlund

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 with Mohammad

Perhaps like this?

template = "welcome-email.md"

data = {
  username: "Mohammad"
}

emailService.sendEmail(template, data);

@mohammadranjbarz sounds ok?

kristoferlund avatar Jun 21 '23 07:06 kristoferlund

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 with Mohammad

Perhaps like this?

template = "welcome-email.md"

data = {
  username: "Mohammad"
}

emailService.sendEmail(template, data);

@mohammadranjbarz sounds ok?

Yeah seems good, will look at it

mohammadranjbarz avatar Jun 21 '23 08:06 mohammadranjbarz