Fix email footer
Do not include notif preferences in contact form email
This commit is contained in:
parent
10c8b0b743
commit
b9cf3fb638
|
@ -606,7 +606,10 @@ class Emailer {
|
||||||
locals: {
|
locals: {
|
||||||
fromName,
|
fromName,
|
||||||
fromEmail,
|
fromEmail,
|
||||||
body
|
body,
|
||||||
|
|
||||||
|
// There are not notification preferences for the contact form
|
||||||
|
hideNotificationPreferences: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -199,7 +199,7 @@ body(width="100%" style="margin: 0; padding: 0 !important; mso-line-height-rule:
|
||||||
td(width="40px")
|
td(width="40px")
|
||||||
img(src=`${WEBSERVER.URL}/client/assets/images/icons/icon-192x192.png` width="auto" height="30px" alt="" border="0" style="height: 30px; background: #ffffff; font-family: sans-serif; font-size: 15px; line-height: 15px; color: #555555;")
|
img(src=`${WEBSERVER.URL}/client/assets/images/icons/icon-192x192.png` width="auto" height="30px" alt="" border="0" style="height: 30px; background: #ffffff; font-family: sans-serif; font-size: 15px; line-height: 15px; color: #555555;")
|
||||||
td
|
td
|
||||||
h1(style='margin: 10px 0 10px 0; font-family: sans-serif; font-size: 25px; line-height: 30px; color: #333333; font-weight: normal;')
|
h1(style='margin: 10px 0 10px 0; font-family: sans-serif; font-size: 25px; line-height: 30px; color: #333333; font-weight: normal;')
|
||||||
block title
|
block title
|
||||||
if title
|
if title
|
||||||
| #{title}
|
| #{title}
|
||||||
|
@ -234,17 +234,18 @@ body(width="100%" style="margin: 0; padding: 0 !important; mso-line-height-rule:
|
||||||
//- 1 Column Text : END
|
//- 1 Column Text : END
|
||||||
//- Email Body : END
|
//- Email Body : END
|
||||||
//- Email Footer : BEGIN
|
//- Email Footer : BEGIN
|
||||||
table(align='center' role='presentation' cellspacing='0' cellpadding='0' border='0' width='100%' style='margin: auto;')
|
unless hideNotificationPreferences
|
||||||
tr
|
table(align='center' role='presentation' cellspacing='0' cellpadding='0' border='0' width='100%' style='margin: auto;')
|
||||||
td(style='padding: 20px; padding-bottom: 0px; font-family: sans-serif; font-size: 12px; line-height: 15px; text-align: center; color: #888888;')
|
tr
|
||||||
webversion
|
td(style='padding: 20px; padding-bottom: 0px; font-family: sans-serif; font-size: 12px; line-height: 15px; text-align: center; color: #888888;')
|
||||||
a.nocolor(href=`${WEBSERVER.URL}/my-account/notifications` style='color: #cccccc; font-weight: bold;') View in your notifications
|
webversion
|
||||||
br
|
a.nocolor(href=`${WEBSERVER.URL}/my-account/notifications` style='color: #cccccc; font-weight: bold;') View in your notifications
|
||||||
tr
|
br
|
||||||
td(style='padding: 20px; padding-top: 10px; font-family: sans-serif; font-size: 12px; line-height: 15px; text-align: center; color: #888888;')
|
tr
|
||||||
unsubscribe
|
td(style='padding: 20px; padding-top: 10px; font-family: sans-serif; font-size: 12px; line-height: 15px; text-align: center; color: #888888;')
|
||||||
a.nocolor(href=`${WEBSERVER.URL}/my-account/settings#notifications` style='color: #888888;') Manage your notification preferences in your profile
|
unsubscribe
|
||||||
br
|
a.nocolor(href=`${WEBSERVER.URL}/my-account/settings#notifications` style='color: #888888;') Manage your notification preferences in your profile
|
||||||
|
br
|
||||||
//- Email Footer : END
|
//- Email Footer : END
|
||||||
//if mso
|
//if mso
|
||||||
//- Full Bleed Background Section : BEGIN
|
//- Full Bleed Background Section : BEGIN
|
||||||
|
|
|
@ -83,6 +83,11 @@ describe('Test contact form', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('Should not have the manage preferences link in the email', async function () {
|
||||||
|
const email = emails[0]
|
||||||
|
expect(email['text']).to.not.contain('Manage your notification preferences')
|
||||||
|
})
|
||||||
|
|
||||||
after(async function () {
|
after(async function () {
|
||||||
MockSmtpServer.Instance.kill()
|
MockSmtpServer.Instance.kill()
|
||||||
|
|
||||||
|
|
|
@ -279,6 +279,11 @@ describe('Test emails', function () {
|
||||||
expect(email['subject']).contains(' unblacklisted')
|
expect(email['subject']).contains(' unblacklisted')
|
||||||
expect(email['text']).contains('my super user video')
|
expect(email['text']).contains('my super user video')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('Should have the manage preferences link in the email', async function () {
|
||||||
|
const email = emails[6]
|
||||||
|
expect(email['text']).to.contain('Manage your notification preferences')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('When verifying a user email', function () {
|
describe('When verifying a user email', function () {
|
||||||
|
|
Loading…
Reference in New Issue