08.06.2018, 14:24
(
Последний раз редактировалось bruxo00; 29.07.2018 в 14:50.
)
![](https://i.gyazo.com/cf4f68f94b939c99ccfd0d9f8f51976c.png)
You can use this, for example to create email confirmations, forgot password, send ban detais via email, send logs or warnings to administrators, etc.
FUNCTIONS
Код:
SendEmail(name[], to[], subject[], text[], bool:isTemplate = false, templateName[] = "default.html")
When using the default.html template (avaliable in the repository), this code:
Код:
SendEmail("It's me", "*************@gmail.com", "This is a subject test with template", "PLAYERNAME:bruxo#PADDRESS:127.0.0.1#DREG:08/06/2018", true);
Wiki - How to setup and how to use
Github Repository
I'm not a NodeJS expert, the code CAN be optimized, and I will do that when I'm feeling like doing that.