We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16c8799 commit faf8635Copy full SHA for faf8635
cmd/root.go
@@ -122,7 +122,7 @@ func initMailer() {
122
case "amazonses":
123
mailSender = &mailer.AmazonSESMailer{}
124
default:
125
- log.Println("no mailer configured")
+ log.Println("no mailer configured, email report will not be sent")
126
return
127
}
128
@@ -162,6 +162,9 @@ func getDomainConfigName(domain string) string {
162
163
164
func sendMail(domain string, issuances []api.Issuance) error {
165
+ if mailSender == nil {
166
+ return nil
167
+ }
168
subject := fmt.Sprintf("Certificate Transparency Notification for %s", domain)
169
body := fmt.Sprintf("ct-monitor has observed the issuance of the following certificate(s) for the %s domain:\n", domain)
170
for _, i := range issuances {
0 commit comments