Adding go-mail package instead of using internal go package. Defining a mailer package to send our emails.
This commit is contained in:
31
internal/mailer/templates/user_welcome.tmpl
Normal file
31
internal/mailer/templates/user_welcome.tmpl
Normal file
@@ -0,0 +1,31 @@
|
||||
{{define "subject"}}Welcome to Greenlight!{{end}}
|
||||
|
||||
{{define "plainBody"}}
|
||||
Hi,
|
||||
|
||||
Thanks for signing up for a Greenlight account. We're excited to have you on board!
|
||||
|
||||
For future reference, your user ID number is {{.ID}}.
|
||||
|
||||
Thanks,
|
||||
|
||||
The Greenlight Team
|
||||
{{end}}
|
||||
|
||||
{{define "htmlBody"}}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Hi,</p>
|
||||
<p>Thanks for signing up for a Greenlight account. We're excited to have you on board!</p>
|
||||
<p>For future reference, your user ID number is {{.ID}}.</p>
|
||||
<p>Thanks,</p>
|
||||
<p>The Greenlight Team</p>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user