mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add a 'testEmail' email type
This commit is contained in:
parent
06bba062a4
commit
70c7e32e58
1 changed files with 16 additions and 3 deletions
|
@ -123,8 +123,6 @@ Thank you
|
|||
description: "Join #{ opts.project.name } at ShareLaTeX"
|
||||
})
|
||||
|
||||
|
||||
|
||||
templates.completeJoinGroupAccount =
|
||||
subject: _.template "Verify Email to join <%= group_name %> group"
|
||||
layout: BaseWithHeaderEmailLayout
|
||||
|
@ -149,6 +147,21 @@ Thank You
|
|||
gmailGoToAction: null
|
||||
})
|
||||
|
||||
templates.testEmail =
|
||||
subject: _.template "Test Email from ShareLaTeX"
|
||||
layout: PersonalEmailLayout
|
||||
type: 'notification'
|
||||
plainTextTemplate: _.template """
|
||||
Hi,
|
||||
|
||||
This is a test email, from ShareLaTeX.
|
||||
|
||||
#{settings.appName} - <%= siteUrl %>
|
||||
"""
|
||||
compiledTemplate: _.template """
|
||||
<p>This is a test email, from ShareLaTeX.</p>
|
||||
"""
|
||||
|
||||
module.exports =
|
||||
templates: templates
|
||||
|
||||
|
@ -163,4 +176,4 @@ module.exports =
|
|||
html: template.layout(opts)
|
||||
text: template?.plainTextTemplate?(opts)
|
||||
type:template.type
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue