IowaComputerGurus / netcore.utilities.email.sendgrid

A utility library for working with templated email delivery using SendGrid as the outbound delivery service
MIT License
1 stars 0 forks source link

Support for Token Replacement #3

Open mitchelsellers opened 3 years ago

mitchelsellers commented 3 years ago

The current implementation of the Email Template Factory allows for a final email message to be integrated into a template.

This should be expanded to allow users to provide a second template, which would be pulled from the same location, but used for the actual content. For example.

BuildTemplatedMessage(string templatePath, List<KeyValuePair<string, string>> tokens);

This could then be chained with the BuildEmailContent() call.