diff --git a/src/util/email.ts b/src/util/email.ts index c8fa90a..b3e2252 100644 --- a/src/util/email.ts +++ b/src/util/email.ts @@ -74,9 +74,12 @@ export const EmailTemplates = { }; export function sendMail(options: Mail.Options) { - return mailTransporter.sendMail({ - from: 'RADAR Launch ', - bcc: 'admin@radardao.xyz, contact@fancyy.xyz', - ...options - }); + if (process.env.NODE_ENV === 'production') { + return mailTransporter.sendMail({ + from: 'RADAR Launch ', + bcc: 'admin@radardao.xyz, contact@fancyy.xyz', + ...options + }); + } + console.log('Not sending email in development mode.', options); }