()
| 44 | } |
| 45 | |
| 46 | func (c EmailConfig) String() string { |
| 47 | return fmt.Sprintf( |
| 48 | "Username: %s\nHost: %s\nPort: %d\nTo: %s\nFrom: %s", |
| 49 | c.Username, |
| 50 | c.Host, |
| 51 | c.Port, |
| 52 | c.To, |
| 53 | c.From, |
| 54 | ) |
| 55 | } |
| 56 | |
| 57 | func SendEmail(emailSubject, msg string, config EmailConfig, lg log.Logger) error { |
| 58 | lg.Info("Sending email notification", "subject", emailSubject) |
no outgoing calls
no test coverage detected