diff --git a/src/routes/account.ts b/src/routes/account.ts
index e99095ac1de929df22940be54cffe3e2579c6212..992335f11190f4352a59e1fcc7e3df127f6f8f2b 100644
--- a/src/routes/account.ts
+++ b/src/routes/account.ts
@@ -369,7 +369,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) {
           mailer.options.to = loggedInUser.email
           mailer.options.subject = emailSubject
           mailer.options.html = emailContent
-          mailer.transport.sendMail(mailer.options, function (err: any) {
+          mailer.transporter.sendMail(mailer.options, function (err: any) {
             if (err) {
               console.log('cannot send email')
               throw err