Skip to content

Commit

Permalink
feat: Include email address in invitation email (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
JigarJoshi authored May 9, 2023
1 parent 1dfda94 commit 97a95e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mailer/customerio.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (m *CustomerIOMailer) InviteMail(user *models.User, referrerURL string) err
}

func (m *CustomerIOMailer) TigrisInviteMail(email string, invitedByName string, code string, invitedOrgCode string, invitedOrgName string, role string, expirationTime int64) error {
invitationURL := fmt.Sprintf("%s/invitation?code=%s", m.Config.TigrisConsoleURL, code)
invitationURL := fmt.Sprintf("%s/invitation?code=%s&email=%s", m.Config.TigrisConsoleURL, code, email)
request := customerio.SendEmailRequest{
To: email,
TransactionalMessageID: m.templateId,
Expand Down

0 comments on commit 97a95e1

Please sign in to comment.