fix sendEmail

This commit is contained in:
m5r
2021-10-31 16:16:29 +01:00
parent c398484cf8
commit 064be8e2a6
3 changed files with 13 additions and 13 deletions

View File

@ -23,7 +23,7 @@ bodyClass: bg-gray-postmark-lighter
</p>
<p class="mt-6 mb-20 text-base leading-24 text-gray-postmark-dark">
My name is Mokhtar and I built {{ page.company.product }} after
growing tired of paying exorbitant charges for international
growing tired of paying exorbitant phone bills for international
communications and getting frustrated over the lack of decent
consumer-oriented cloud phone solutions.
</p>
@ -35,8 +35,8 @@ bodyClass: bg-gray-postmark-lighter
</p>
<p class="mt-6 mb-20 text-base leading-24 text-gray-postmark-dark">
Take care!
<br />{{ page.company.sender }} <br />Founder at {{
page.company.product }}
<br />{{ page.company.sender }} <br />
Founder at {{ page.company.product }}
</p>
</div>
</td>

View File

@ -20,15 +20,14 @@ export async function welcomeMailer({ to, userName }: ResetPasswordMailer) {
return {
async send() {
if (process.env.NODE_ENV === "production") {
await sendEmail({
return sendEmail({
recipients: [msg.to],
subject: msg.subject,
html: msg.html,
});
} else {
// Preview email in the browser
return await previewEmail(msg);
}
return previewEmail(msg);
},
};
}