stocky-pager-63161
12/17/2021, 10:42 AMmagnificent-energy-493
text/template
package for rendering the email.subject.gotmpl
and email.body.plaintext.gotmpl
templates
&
html/template
package for rendering the email.body.gotmpl
template
So you get subject and plain text version with text/template and the HTML body with the html/template package.bitter-arm-6486
12/17/2021, 11:25 AMmagnificent-energy-493
bitter-arm-6486
12/17/2021, 12:19 PMmagnificent-energy-493
bitter-arm-6486
12/17/2021, 1:00 PMmagnificent-energy-493
bitter-arm-6486
12/20/2021, 3:08 PMmagnificent-energy-493
// AddAlternative adds an alternative part to the message.
//
// It is commonly used to send HTML emails that default to the plain text
// version for backward compatibility. AddAlternative appends the new part to
// the end of the message. So the plain text part should be added before the
// HTML part. See http://en.wikipedia.org/wiki/MIME#Alternativehttps://github.com/ory/kratos/blob/1762a730886707be3549bc6789f65c66d755e1d0/courier/courier.go#L205
bitter-arm-6486
12/23/2021, 6:41 PM