Adding godotenv library to use our .env file for the smtp configuration. Updating main.go adding our logger first, load our .env file, retrieve values to initialize the mail application's struct. Updating registerUserHandler sending the user_welcome.tmpl email.
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 15m11s

This commit is contained in:
Maxime Delporte
2025-11-30 17:22:32 +01:00
parent 68e606976f
commit 8954318e40
4 changed files with 47 additions and 3 deletions

1
go.mod
View File

@@ -4,6 +4,7 @@ go 1.25.1
require (
github.com/go-mail/mail/v2 v2.3.0 // indirect
github.com/joho/godotenv v1.5.1 // indirect
github.com/julienschmidt/httprouter v1.3.0 // indirect
github.com/lib/pq v1.10.9 // indirect
golang.org/x/crypto v0.45.0 // indirect