diff --git a/notificationmdl/email/email.go b/notificationmdl/email/email.go index 12c55e7e45aaecd9d24b7022a26b26b062f87441..4e3dccc2f6b9969132d240fb96c44e736ca7b870 100644 --- a/notificationmdl/email/email.go +++ b/notificationmdl/email/email.go @@ -78,7 +78,7 @@ func (email *Email) SetAlternateText(plainBody string) { // SendMail - send email service sends email as per the given html template and data //templateData can contain any type of values, including array, slice, map, struct and func func (email *Email) SendMail(templateFilePath string, templateData interface{}) error { - err := email.parseTemplateFile(templateFilePath, templateData) + err := email.ParseTemplateFile(templateFilePath, templateData) if errormdl.CheckErr(err) != nil { loggermdl.LogError(err) return err @@ -95,7 +95,7 @@ func (email *Email) SendMail(templateFilePath string, templateData interface{}) return nil } -func (email *Email) parseTemplateFile(templateFilePath string, templateData interface{}) error { +func (email *Email) ParseTemplateFile(templateFilePath string, templateData interface{}) error { tmplt, err := template.ParseFiles(templateFilePath) if errormdl.CheckErr(err) != nil { loggermdl.LogError("error occured while calling parseTemplateFile: ", errormdl.CheckErr(err))