Skip to content

Commit

Permalink
fix typo: after send -> before send (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Mar 26, 2024
1 parent 3161d31 commit 21c1eba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func main() {
email.SetDkim(options)
}

// always check error after send
// always check error before send
if email.Error != nil{
log.Fatal(email.Error)
}
Expand Down Expand Up @@ -262,7 +262,7 @@ func main() {
// add inline
email.Attach(&mail.File{FilePath: "/path/to/image.png", Name:"Gopher.png", Inline: true})

// always check error after send
// always check error before send
if email.Error != nil{
log.Fatal(email.Error)
}
Expand Down

0 comments on commit 21c1eba

Please sign in to comment.