Skip to content

Commit

Permalink
email final
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldhanekaa committed Aug 10, 2021
1 parent d7b3c3e commit 59a4126
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controllers/auth/sendEmail/registerLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ export default async function sendRegisterInfo(
let sendEmailRes = await transporter.sendMail({
from: '"Aldhaneka<DO NOT REPLY>" <aldhanekadev@gmail.com>', // sender address
to: email, // list of receivers
subject:
'TechnoNatura Dashboard - Berhasil Registrasi TechnoNatura Dashboard!',
subject: !login
? 'TechnoNatura Dashboard - Berhasil Registrasi TechnoNatura Dashboard!'
: 'TechnoNatura Dashboard - Seseorang Baru Saja Masuk ke Akun Anda!',
html: EmailTemplate(`
<body style="outline: 0; width: 100%; min-width: 100%; height: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; font-family: Helvetica, Arial, sans-serif; line-height: 24px; font-weight: normal; font-size: 16px; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; color: #000000; margin: 0; padding: 0; border: 0;" bgcolor="#ffffff"><table class="body" valign="top" role="presentation" border="0" cellpadding="0" cellspacing="0" style="outline: 0; width: 100%; min-width: 100%; height: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; font-family: Helvetica, Arial, sans-serif; line-height: 24px; font-weight: normal; font-size: 16px; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; color: #000000; margin: 0; padding: 0; border: 0;" bgcolor="#ffffff">
<tbody>
Expand Down

0 comments on commit 59a4126

Please sign in to comment.