Skip to content

Commit 3c1d683

Browse files
committed
Update documentation for SMTPS support (outgoing)
1 parent 83b5582 commit 3c1d683

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ produces mail.
2020

2121
## Main features
2222

23-
* Supports incoming SMTPS/TLS (465), STARTTLS (587) and unencrypted SMTP (25)
23+
* Supports SMTPS/TLS (465), STARTTLS (587) and unencrypted SMTP (25)
2424
* Checks for sender, receiver, client IP
2525
* Authentication support with file (LOGIN, PLAIN)
2626
* Enforce encryption for authentication
27-
* Supports outgoing STARTTLS (587) and unencrypted SMTP (25)
2827
* Forwards all mail to a smarthost (GMail, MailGun or any other SMTP server)
2928
* Small codebase (smtp-proxy ~250 LoC, chrj/smtpd ~1200 LoC)
3029
* IPv6 support

smtp.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ func (c *Client) Data() (io.WriteCloser, error) {
297297

298298
var testHookStartTLS func(*tls.Config) // nil, except for tests
299299

300-
// SendMail connects to the server at addr, switches to TLS if
300+
// SendMail connects to the server at addr with TLS when port 465 or
301+
// smtps is specified or unencrypted otherwise and switches to TLS if
301302
// possible, authenticates with the optional mechanism a if possible,
302303
// and then sends an email from address from, to addresses to, with
303304
// message msg.

0 commit comments

Comments
 (0)