Skip to content
Snippets Groups Projects

feat(AuthorEmailHERemoved): Created email template and code for sending it

Merged Mihail Hagiu requested to merge HIN-1184-AuthorEmailHERemoved into develop
All threads resolved!
Files
3
const config = require('config')
const staffEmail = config.get('journal.staffEmail')
const journalName = config.get('journal.name')
const getEmailCopy = ({ emailType, titleText, targetUserName, comments }) => {
let paragraph
@@ -34,6 +35,14 @@ const getEmailCopy = ({ emailType, titleText, targetUserName, comments }) => {
paragraph = `${targetUserName} has removed you from the role of Handling Editor for ${titleText}.<br/><br/>
The manuscript will no longer appear in your dashboard. Please contact ${staffEmail} if you have any questions about this change.`
break
case 'author-he-removed':
hasIntro = true
hasLink = false
hasSignature = true
paragraph = `The handling editor of your manuscript "${titleText}" had to be replaced. This may cause some delays in the peer review process.<br/><br/>
If you have questions please email them to ${staffEmail}<br/><br/>.
Thank you for your submission to ${journalName}.`
break
default:
throw new Error(`The ${emailType} email type is not defined.`)
}