diff --git a/actions/challengeRegistration.js b/actions/challengeRegistration.js index 0872a3a64..b5d186bfc 100644 --- a/actions/challengeRegistration.js +++ b/actions/challengeRegistration.js @@ -435,7 +435,7 @@ var sendNotificationEmail = function (api, componentInfo, userId, activeForumCat submitURL : submitURL, reviewURL : reviewURL, template : template, - toAddress : user.email, + toAddress : user.address, senderName : "TC API" }, 'default'); cb(); diff --git a/actions/user.js b/actions/user.js index bd5544abb..fd72b92ac 100644 --- a/actions/user.js +++ b/actions/user.js @@ -211,7 +211,7 @@ function userActivationEmail(api, connection, next) { subject : activationEmailSubject, activationCode : activationCode, template : 'activation_email', - toAddress : rs[0].email, + toAddress : rs[0].address, fromAddress : process.env.TC_EMAIL_ACCOUNT, senderName : activationEmailSenderName, url : process.env.TC_ACTIVATION_SERVER_NAME + '/reg2/activate.action?code=' + activationCode,