Skip to content

Commit

Permalink
fix send_mail example
Browse files Browse the repository at this point in the history
  • Loading branch information
kataras committed Oct 31, 2016
1 parent 73bdcd7 commit 49d9774
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions letsencrypt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ func main() {
// This will provide you automatic certification & key from letsencrypt.org's servers
// it also starts a second 'http://' server which will redirect all 'http://$PATH' requests to 'https://$PATH'
iris.ListenLETSENCRYPT("127.0.0.1:443")

}
6 changes: 3 additions & 3 deletions send_mail/main.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package main

import (
"github.com/iris-contrib/mail"
"github.com/kataras/iris"
"github.com/kataras/go-mailer"
)

func main() {
// change these to your settings

cfg := mail.Config{
cfg := mailer.Config{
Host: "smtp.mailgun.org",
Username: "postmaster@sandbox661c307650f04e909150b37c0f3b2f09.mailgun.org",
Password: "38304272b8ee5c176d5961dc155b2417",
Expand All @@ -17,7 +17,7 @@ func main() {
// change these to your e-mail to check if that works

// create the service
mailService := mail.New(cfg)
mailService := mailer.New(cfg)

var to = []string{"kataras2006@hotmail.com", "social@ideopod.com"}

Expand Down

0 comments on commit 49d9774

Please sign in to comment.