send_activation_mail
v1.0.6
Published
send activation link to email address
Downloads
1
Readme
Author: Abduhodi Tursunboyev
in default.json file create following keys: values: smtp_host, smtp_port, smtp_user, smtp_password.
How to use:
const activate = require("send_activation_mail");
const link = ${config.get("api_url")}/api/user/activate/${activation_link};
const header = "Confirmation mail";
await activate(user.email, header, link);
call activate(to, header, link) function and give arguments: to - email address to send email activation; header - Subject of your mail; link - full path of your activation endpoint ex. http://localhost:3000/api/user/activate/{uuid};