Skip to content

Commit

Permalink
check only :25 port on SMTP check
Browse files Browse the repository at this point in the history
  • Loading branch information
aine-etke committed Oct 10, 2024
1 parent 3235e79 commit a9a5489
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions emails.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func (v *V) emailNoSMTP(ctx context.Context, email string, errchan chan error) {
return
}

trysmtp.SMTPAddrs = []string{":25"}
client, err := trysmtp.Connect(v.cfg.Email.From, email)
if err != nil {
if strings.HasPrefix(err.Error(), "45") {
Expand Down

0 comments on commit a9a5489

Please sign in to comment.