therefinerynz / courier

Craft CMS plugin to manage the automated delivery of custom emails, triggered by certain pre-determined events and conditions.
MIT License
25 stars 4 forks source link

Dynamic toEmail address for Blueprint #4

Open gazsp opened 7 years ago

gazsp commented 7 years ago

Is it possible to use Twig tags for the toEmail Blueprint field?

I need to send an email to a user when they sign up in a specific way (i.e. not the normal sign up process, which Craft already handles by sending out emails).

I suppose I could manually update the Blueprint in the database before the event fires, but I'd rather do something like {{ user.email }} in the toEmail field.

Thanks!

gazsp commented 7 years ago

Looking through the code, it looks like the plugin can do this already (_renderBlueprintSettings in Courier_EmailsService) - please feel free to confirm and close this issue. Thanks again!