- A guide of how to send mails in go(Golang) efficiently using golang standard library or with the help of a very light package go-simple-mail
- Using standard library:
- Clone the repository, or download it
- Run: cd standard-library
- Run :
go run *.go
- Install Mailhog on your computer and run it.
- Paste this link in the browser: http://localhost:8025/
- Head to this link: http://localhost:8080/send-mail
- Using go-simple-mail package
- Clone the repository, or download it
- Run: cd go-send-mail-pkg
- Run :
go run *.go
- Install Mailhog on your computer and run it.
- Paste this link in the browser: http://localhost:8025/
- Head to this link: http://localhost:8080/send-mail