Skip to content

Commit

Permalink
Fixed comments to follow go standards
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Mar 3, 2020
1 parent b2ca74e commit 406fcd6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You can view the generated [documentation here](https://godoc.org/github.com/mrz
- [SMTP](https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol)

## Examples & Tests
All unit tests and [examples](examples/examples.go) run via [Travis CI](https://travis-ci.com/mrz1836/go-mail) and uses [Go version 1.13.x](https://golang.org/doc/go1.13). View the [deployment configuration file](.travis.yml).
All unit tests and [examples](examples/examples.go) run via [Travis CI](https://travis-ci.com/mrz1836/go-mail) and uses [Go version 1.14.x](https://golang.org/doc/go1.14). View the [deployment configuration file](.travis.yml).

Run all tests (including integration tests)
```bash
Expand Down
20 changes: 10 additions & 10 deletions examples/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"strconv"

"github.com/mrz1836/go-mail"
gomail "github.com/mrz1836/go-mail"
)

func main() {
Expand Down Expand Up @@ -58,23 +58,23 @@ func fullExample() {
mail := new(gomail.MailService)
mail.FromName = "No Reply"
mail.FromUsername = "no-reply"
mail.FromDomain = os.Getenv("EMAIL_FROM_DOMAIN") //example.com
mail.FromDomain = os.Getenv("EMAIL_FROM_DOMAIN") // example.com

// Mandrill
mail.MandrillAPIKey = os.Getenv("EMAIL_MANDRILL_KEY") //aOfw3WU...
mail.MandrillAPIKey = os.Getenv("EMAIL_MANDRILL_KEY") // aOfw3WU...

// AWS SES
mail.AwsSesAccessID = os.Getenv("EMAIL_AWS_SES_ACCESS_ID") //AKIAY...
mail.AwsSesSecretKey = os.Getenv("EMAIL_AWS_SES_SECRET_KEY") //tOpw3WU...
mail.AwsSesAccessID = os.Getenv("EMAIL_AWS_SES_ACCESS_ID") // AKIAY...
mail.AwsSesSecretKey = os.Getenv("EMAIL_AWS_SES_SECRET_KEY") // tOpw3WU...

// Postmark
mail.PostmarkServerToken = os.Getenv("EMAIL_POSTMARK_SERVER_TOKEN") //AKIAY...
mail.PostmarkServerToken = os.Getenv("EMAIL_POSTMARK_SERVER_TOKEN") // AKIAY...

// SMTP
mail.SMTPHost = os.Getenv("EMAIL_SMTP_HOST") //example.com
mail.SMTPPort, _ = strconv.Atoi(os.Getenv("EMAIL_SMTP_PORT")) //25
mail.SMTPUsername = os.Getenv("EMAIL_SMTP_USERNAME") //johndoe
mail.SMTPPassword = os.Getenv("EMAIL_SMTP_PASSWORD") //secretPassword
mail.SMTPHost = os.Getenv("EMAIL_SMTP_HOST") // example.com
mail.SMTPPort, _ = strconv.Atoi(os.Getenv("EMAIL_SMTP_PORT")) // 25
mail.SMTPUsername = os.Getenv("EMAIL_SMTP_USERNAME") // johndoe
mail.SMTPPassword = os.Getenv("EMAIL_SMTP_PASSWORD") // secretPassword

provider := gomail.SMTP // AwsSes Mandrill Postmark

Expand Down

0 comments on commit 406fcd6

Please sign in to comment.