Skip to content

Commit

Permalink
fix email endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Apr 28, 2024
1 parent f521314 commit 59516ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/ThirdParty.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ router.post('/email', async (req, res) => {
],
subject: message.subject,
text: message.text,
html: message.text,
html: message.text.replace(/\n/g, '<br>'),
}),
});
res.status(response.status).send(await response.json());
res.status(response.status).send(await response.text());
});

// ===================== Router =====================
Expand Down

0 comments on commit 59516ce

Please sign in to comment.