const message = `
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<pre> Hello,
You have required to register with your e-mail to ...
Click : <a href="nameapp://open?email=${email}&activationCode=${activationCode}">Activation Link</a>
Thank you for joining our community!
</body>
</html>`;
отправка
let send = function (email, subject, text) {
const message = {
from: config.mail.from,
to: email,
subject: subject,
html: text,
}
return transport.sendMail(message)
.catch(console.dir)
}
результат на почту...
<pre> Hello,
You have required to register with your e-mail to ...
Click : <a>Activation Link</a>
Thank you for joining our community!
</pre>
проблема с адрессом ссылки.
А кто отправляет точно адрес зарегистрирован?)
Обсуждают сегодня