08.06.2018, 14:24
(
Последний раз редактировалось bruxo00; 29.07.2018 в 14:50.
)
This is an include that can send emails from your server, directly through a GMAIL account. The great advantage of doing this, is that the emails will NEVER end in the SPAM folder, because they are sent from GMAIL servers, and no email provider blocks them. It uses a simple NodeJS script to handle everything. It's super easy to setup.
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
EXAMPLE
When using the default.html template (avaliable in the repository), this code:
Will generate this email:
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.
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.