Skip to content

Email services are part of Infrastructure, Email templates? #685

Answered by fakhrulhilal
X-GeneIT asked this question in Q&A
Discussion options

You must be logged in to vote

I'm separating email sending into 3 parts:

  1. Email template compiler
    Its job is reading email template (currently in HTML format), populating placeholder variable (currently using {variable_name} format), then give the rendered HTML format. It also provides conversion from HTML to plain text. It's highly suggested to set plain text alternative when sending HTML email. We can also apply layout template here. So the email wrapper will pass only partial body.
  2. Email sender
    Its job is sending email to SMTP or other provider. This can be implemented in builtin .NET lib or using MailKit or any 3rd party email service provider (like sendgrid). It accepts common sending email parameter, i.e. TO, CC…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@MakeStuffGo
Comment options

@X-GeneIT
Comment options

@MakeStuffGo
Comment options

@X-GeneIT
Comment options

@X-GeneIT
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by X-GeneIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants