Skip to content

Commit

Permalink
Rename SendMail PLAIN auth example
Browse files Browse the repository at this point in the history
To make go vet happy:

    ./example_test.go:60:1: ExampleSendMail_PlainAuth refers to unknown field or method: SendMail.PlainAuth
  • Loading branch information
emersion committed Mar 29, 2024
1 parent ab41a2a commit dd32c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var (
recipients = []string{"[email protected]"}
)

func ExampleSendMail_PlainAuth() {
func ExampleSendMail_plainAuth() {
// hostname is used by PlainAuth to validate the TLS certificate.
hostname := "mail.example.com"
auth := sasl.NewPlainClient("", "[email protected]", "password")
Expand Down

0 comments on commit dd32c05

Please sign in to comment.