Skip to content
Snippets Groups Projects

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

Merged Mihail Hagiu requested to merge HIN-1183-ReviewerEmailHERemoved into develop
All threads resolved!
Files
3
@@ -39,7 +39,7 @@ const getEmailCopy = ({ emailType, titleText, targetUserName, comments }) => {
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/>
paragraph = `We had to replace the handling editor of your manuscript ${titleText}. We apologise for any inconvenience, but it was necessary in order to move your manuscript forward.<br/><br/>
If you have questions please email them to ${staffEmail}.<br/><br/>
Thank you for your submission to ${journalName}.`
break
@@ -47,10 +47,18 @@ const getEmailCopy = ({ emailType, titleText, targetUserName, comments }) => {
hasIntro = true
hasLink = false
hasSignature = true
paragraph = `The Editor in Chief removed you from the manuscript "${titleText}".<br/><br/>
paragraph = `The editor in chief removed you from the manuscript "${titleText}".<br/><br/>
If you have any questions regarding this action, please let us know at ${staffEmail}.<br/><br/>
Thank you for reviewing ${journalName}.`
break
case 'reviewer-he-removed':
hasIntro = true
hasLink = false
hasSignature = true
paragraph = `We had to replace the handling editor of the manuscript "${titleText}". We apologise for any inconvenience this may cause.<br/><br/>
If you have started the review process please email the content to ${staffEmail}.<br/><br/>
Thank you for reviewing ${journalName}.`
break
default:
throw new Error(`The ${emailType} email type is not defined.`)
}