Skip to content

Commit 91a5908

Browse files
author
Dean Karn
authored
Merge pull request #23 from Chiiruno/dev/email
email handler: Set formatter in SetEmailConfig
2 parents a9482c3 + f55db1a commit 91a5908

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

handlers/email/email.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ func (email *Email) SetEmailConfig(host string, port int, username string, passw
116116
email.password = password
117117
email.from = from
118118
email.to = to
119+
email.formatter = email.formatFunc(email)
119120
}
120121

121122
func defaultFormatFunc(email *Email) Formatter {

0 commit comments

Comments
 (0)