Skip to content

Commit

Permalink
Update smtp.go
Browse files Browse the repository at this point in the history
Signed-off-by: kannan-nic <[email protected]>
  • Loading branch information
kannan-nic authored May 1, 2024
1 parent 8cd7813 commit 19801de
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions connector/smtp/smtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,17 @@ func (sc *smtpConnector) Login(ctx context.Context, _ connector.Scopes, username
return
}
sc.cfg.Host = h + ":" + p


tlsconfig := &tls.Config {
InsecureSkipVerify: true,
ServerName: host,

Check failure on line 39 in connector/smtp/smtp.go

View workflow job for this annotation

GitHub Actions / Lint

undefined: host (typecheck)

Check failure on line 39 in connector/smtp/smtp.go

View workflow job for this annotation

GitHub Actions / Lint

undefined: host) (typecheck)

Check failure on line 39 in connector/smtp/smtp.go

View workflow job for this annotation

GitHub Actions / Test

undefined: host
}
// Dial

var conn net.Conn

if p == "" || p == "25" {
conn, err = tls.Dial("tcp", sc.cfg.Host, nil)
conn, err = tls.Dial("tcp", sc.cfg.Host, tlsconfig)
if err != nil {
return
}
Expand Down

0 comments on commit 19801de

Please sign in to comment.