Skip to content

Commit

Permalink
Merge pull request #253 from capcodigital/feature/email-typo
Browse files Browse the repository at this point in the history
Email updates
  • Loading branch information
andrewkentish authored Jun 18, 2024
2 parents 716e697 + 524615a commit 451df77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions server/controllers/fitbit.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ exports.authorize = function(req, res) {
*/

let emailText = "Hello " + user.name + ",\n\rYou have successfully registered for the Capco Global Challenge with your FitBit account. \n\r" +
"Once the challenge starts on June 26th, you can view your progress here: " + callbackUrl + "\n\r" +
"Once the challenge starts on June 26th, you can view your progress here: " + callbackUrl + ".\n\r" +
"If you did not register or wish to be removed from the challenge and your account deleted please email the support team" +
" challenge@capco.com\n\r" +
"Thank you for your support - and good luck \n\rCapco Health & Wellbeing";
" challenge@capco.com.\n\r" +
"Thank you for your support - and good luck \n\rWellbeing@Capco & Capco CSR.";

mailer.sendMail(user.email, "Capco Challenge Registration Successfull", emailText, function() {
mailer.sendMail(user.email, "Capco Challenge Registration Successful", emailText, function() {
console.log("email sent to " + user.email);
});

Expand Down
8 changes: 4 additions & 4 deletions server/controllers/strava.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ exports.authorize = function(req, res) {
*/

let emailText = "Hello " + user.name + ",\n\rYou have successfully registered for the Capco Global Challenge with your Strava account. \n\r" +
"Once the challenge starts on June 26th, you can view your progress here: " + callbackUrl + "\n\r" +
"Once the challenge starts on June 26th, you can view your progress here: " + callbackUrl + ".\n\r" +
"If you did not register or wish to be removed from the challenge and your account deleted please email the support team" +
" challenge@capco.com\n\r" +
"Thank you for your support - and good luck \n\rCapco Health & Wellbeing";
" challenge@capco.com.\n\r" +
"Thank you for your support - and good luck \n\rWellbeing@Capco & Capco CSR.";

mailer.sendMail(user.email, "Capco Challenge Registration Successfull", emailText, function() {
mailer.sendMail(user.email, "Capco Challenge Registration Successful", emailText, function() {
console.log("email sent to " + user.email);
});

Expand Down

0 comments on commit 451df77

Please sign in to comment.