mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +02:00
Customizable Contact Us link in email notifications
This commit is contained in:
parent
8db452a18b
commit
6e7f3cceaa
9 changed files with 45 additions and 33 deletions
|
@ -81,7 +81,7 @@ background-color: #f6f6f6;
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
|
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
|
||||||
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px; color: #7a8184;" valign="top">
|
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px; color: #7a8184;" valign="top">
|
||||||
Have any questions? <a href="mailto:team@documize.com" style="color: #7a8184;">Contact Documize</a>
|
Have any questions? <a href="mailto:{{.SenderEmail}}" style="color: #7a8184;">Contact Us</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -37,15 +37,17 @@ func (m *Mailer) DocumentApprover(recipient, inviterName, inviterEmail, url, doc
|
||||||
em.ReplyName = inviterName
|
em.ReplyName = inviterName
|
||||||
|
|
||||||
parameters := struct {
|
parameters := struct {
|
||||||
Subject string
|
Subject string
|
||||||
Inviter string
|
Inviter string
|
||||||
URL string
|
URL string
|
||||||
Document string
|
Document string
|
||||||
|
SenderEmail string
|
||||||
}{
|
}{
|
||||||
em.Subject,
|
em.Subject,
|
||||||
inviterName,
|
inviterName,
|
||||||
url,
|
url,
|
||||||
document,
|
document,
|
||||||
|
m.Config.SenderEmail,
|
||||||
}
|
}
|
||||||
|
|
||||||
html, err := m.ParseTemplate("mail/document-approver.html", parameters)
|
html, err := m.ParseTemplate("mail/document-approver.html", parameters)
|
||||||
|
|
|
@ -89,10 +89,10 @@ background-color: #f6f6f6;
|
||||||
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
|
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
|
||||||
<a href="{{.Url}}" class="btn-primary" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Click here to access Documize</a>
|
<a href="{{.Url}}" class="btn-primary" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Click here to access Documize</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
|
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
|
||||||
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px; color: #7a8184;" valign="top">
|
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px; color: #7a8184;" valign="top">
|
||||||
Have any questions? <a href="mailto:team@documize.com" style="color: #7a8184;">Contact Documize</a>
|
Have any questions? <a href="mailto:{{.SenderEmail}}" style="color: #7a8184;">Contact Us</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -106,4 +106,4 @@ background-color: #f6f6f6;
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -77,7 +77,7 @@ background-color: #f6f6f6;
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
|
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
|
||||||
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px; color: #7a8184;" valign="top">
|
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px; color: #7a8184;" valign="top">
|
||||||
Have any questions? <a href="mailto:team@documize.com" style="color: #7a8184;">Contact Documize</a>
|
Have any questions? <a href="mailto:{{.SenderEmail}}" style="color: #7a8184;">Contact Us</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -87,7 +87,7 @@ background-color: #f6f6f6;
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
|
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
|
||||||
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px; color: #7a8184;" valign="top">
|
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px; color: #7a8184;" valign="top">
|
||||||
Have any questions? <a href="mailto:team@documize.com" style="color: #7a8184;">Contact Documize</a>
|
Have any questions? <a href="mailto:{{.SenderEmail}}" style="color: #7a8184;">Contact Us</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -84,7 +84,7 @@ background-color: #f6f6f6;
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
|
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
|
||||||
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px; color: #7a8184;" valign="top">
|
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px; color: #7a8184;" valign="top">
|
||||||
Have any questions? <a href="mailto:team@documize.com" style="color: #7a8184;">Contact Documize</a>
|
Have any questions? <a href="mailto:{{.SenderEmail}}" style="color: #7a8184;">Contact Us</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -98,4 +98,4 @@ background-color: #f6f6f6;
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -80,7 +80,7 @@ background-color: #f6f6f6;
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
|
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
|
||||||
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px; color: #7a8184;" valign="top">
|
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px; color: #7a8184;" valign="top">
|
||||||
Have any questions? <a href="mailto:team@documize.com" style="color: #7a8184;">Contact Documize</a>
|
Have any questions? <a href="mailto:{{.SenderEmail}}" style="color: #7a8184;">Contact Us</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -35,17 +35,19 @@ func (m *Mailer) ShareSpaceExistingUser(recipient, inviterName, inviterEmail, ur
|
||||||
em.ReplyName = inviterName
|
em.ReplyName = inviterName
|
||||||
|
|
||||||
parameters := struct {
|
parameters := struct {
|
||||||
Subject string
|
Subject string
|
||||||
Inviter string
|
Inviter string
|
||||||
URL string
|
URL string
|
||||||
Folder string
|
Folder string
|
||||||
Intro string
|
Intro string
|
||||||
|
SenderEmail string
|
||||||
}{
|
}{
|
||||||
em.Subject,
|
em.Subject,
|
||||||
inviterName,
|
inviterName,
|
||||||
url,
|
url,
|
||||||
folder,
|
folder,
|
||||||
intro,
|
intro,
|
||||||
|
m.Config.SenderEmail,
|
||||||
}
|
}
|
||||||
|
|
||||||
html, err := m.ParseTemplate("mail/share-space-existing-user.html", parameters)
|
html, err := m.ParseTemplate("mail/share-space-existing-user.html", parameters)
|
||||||
|
@ -82,17 +84,19 @@ func (m *Mailer) ShareSpaceNewUser(recipient, inviterName, inviterEmail, url, sp
|
||||||
em.ReplyName = inviterName
|
em.ReplyName = inviterName
|
||||||
|
|
||||||
parameters := struct {
|
parameters := struct {
|
||||||
Subject string
|
Subject string
|
||||||
Inviter string
|
Inviter string
|
||||||
URL string
|
URL string
|
||||||
Invitation string
|
Invitation string
|
||||||
Folder string
|
Folder string
|
||||||
|
SenderEmail string
|
||||||
}{
|
}{
|
||||||
em.Subject,
|
em.Subject,
|
||||||
inviterName,
|
inviterName,
|
||||||
url,
|
url,
|
||||||
invitationMessage,
|
invitationMessage,
|
||||||
space,
|
space,
|
||||||
|
m.Config.SenderEmail,
|
||||||
}
|
}
|
||||||
|
|
||||||
html, err := m.ParseTemplate("mail/share-space-new-user.html", parameters)
|
html, err := m.ParseTemplate("mail/share-space-new-user.html", parameters)
|
||||||
|
|
|
@ -35,17 +35,19 @@ func (m *Mailer) InviteNewUser(recipient, inviterName, inviterEmail, url, userna
|
||||||
em.ReplyName = inviterName
|
em.ReplyName = inviterName
|
||||||
|
|
||||||
parameters := struct {
|
parameters := struct {
|
||||||
Subject string
|
Subject string
|
||||||
Inviter string
|
Inviter string
|
||||||
URL string
|
URL string
|
||||||
Username string
|
Username string
|
||||||
Password string
|
Password string
|
||||||
|
SenderEmail string
|
||||||
}{
|
}{
|
||||||
em.Subject,
|
em.Subject,
|
||||||
inviterName,
|
inviterName,
|
||||||
url,
|
url,
|
||||||
recipient,
|
recipient,
|
||||||
password,
|
password,
|
||||||
|
m.Config.SenderEmail,
|
||||||
}
|
}
|
||||||
|
|
||||||
html, err := m.ParseTemplate("mail/invite-new-user.html", parameters)
|
html, err := m.ParseTemplate("mail/invite-new-user.html", parameters)
|
||||||
|
@ -82,13 +84,15 @@ func (m *Mailer) InviteExistingUser(recipient, inviterName, inviterEmail, url st
|
||||||
em.ReplyName = inviterName
|
em.ReplyName = inviterName
|
||||||
|
|
||||||
parameters := struct {
|
parameters := struct {
|
||||||
Subject string
|
Subject string
|
||||||
Inviter string
|
Inviter string
|
||||||
URL string
|
URL string
|
||||||
|
SenderEmail string
|
||||||
}{
|
}{
|
||||||
em.Subject,
|
em.Subject,
|
||||||
inviterName,
|
inviterName,
|
||||||
url,
|
url,
|
||||||
|
m.Config.SenderEmail,
|
||||||
}
|
}
|
||||||
|
|
||||||
html, err := m.ParseTemplate("mail/invite-existing-user.html", parameters)
|
html, err := m.ParseTemplate("mail/invite-existing-user.html", parameters)
|
||||||
|
@ -118,11 +122,13 @@ func (m *Mailer) PasswordReset(recipient, url string) {
|
||||||
em.ToName = recipient
|
em.ToName = recipient
|
||||||
|
|
||||||
parameters := struct {
|
parameters := struct {
|
||||||
Subject string
|
Subject string
|
||||||
URL string
|
URL string
|
||||||
|
SenderEmail string
|
||||||
}{
|
}{
|
||||||
em.Subject,
|
em.Subject,
|
||||||
url,
|
url,
|
||||||
|
m.Config.SenderEmail,
|
||||||
}
|
}
|
||||||
|
|
||||||
html, err := m.ParseTemplate("mail/password-reset.html", parameters)
|
html, err := m.ParseTemplate("mail/password-reset.html", parameters)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue