mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Set ReplyTo for SMTP based notifications
Ensure all replies go back to person who initiated the notification.
This commit is contained in:
parent
3b0291d94c
commit
2298ac3376
9 changed files with 720 additions and 697 deletions
|
@ -868,7 +868,7 @@ func (h *Handler) Invite(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
url := ctx.GetAppURL(fmt.Sprintf("s/%s/%s", sp.RefID, stringutil.MakeSlug(sp.Name)))
|
||||
mailer := mail.Mailer{Runtime: h.Runtime, Store: h.Store, Context: ctx}
|
||||
go mailer.ShareSpaceExistingUser(email, inviter.Fullname(), url, sp.Name, model.Message)
|
||||
go mailer.ShareSpaceExistingUser(email, inviter.Fullname(), inviter.Email, url, sp.Name, model.Message)
|
||||
|
||||
h.Runtime.Log.Info(fmt.Sprintf("%s is sharing space %s with existing user %s", inviter.Email, sp.Name, email))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue