Skip to content

Commit

Permalink
fix: use html tags to render invitation email body (#251)
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <thekushsharma@gmail.com>
  • Loading branch information
kushsharma committed Jun 2, 2023
1 parent 89a517e commit 9c83031
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 77 deletions.
13 changes: 8 additions & 5 deletions core/invitation/invite.go
Expand Up @@ -14,11 +14,14 @@ var (

const (
inviteEmailSubject = "You have been invited to join an organization"
inviteEmailBody = `Hi {{.UserID}},
You have been invited to join an organization: {{.Organization}}. Login to your account to accept the invitation.
Thanks,
Shield Team`
inviteEmailBody = `<div>Hi {{.UserID}},</div>
<br>
<p>You have been invited to join an organization: {{.Organization}}. Login to your account to accept the invitation.</p>
<br>
<div>
Thanks,<br>
Team Shield
</div>`
)

type Invitation struct {
Expand Down

0 comments on commit 9c83031

Please sign in to comment.