diff --git a/email/smtp.go b/email/smtp.go index b8568ead..22a8b539 100644 --- a/email/smtp.go +++ b/email/smtp.go @@ -57,7 +57,7 @@ func (cfg *SmtpEmailerConfig) UnmarshalJSON(data []byte) error { if smtpCfg.Host == "" { return errors.New("must set SMTP host") } - if smtpCfg.Port == "" { + if smtpCfg.Port == 0 { return errors.New("must set SMTP port") } *cfg = SmtpEmailerConfig(smtpCfg)