13.06.2018, 13:27
Quote:
SAMPMAILJS_PASSWORD - this password must be the same password as httpPassword in the sampmail.js. This is to prevent external users to use the script without your consent, it has nothing to do with your gmail password.
Wich version of NodeJS do you have? Please send the email and tell me what error appears on the NodeJS console. I didn't tested the script on windows, but in theory it should work the same way it works on Linux. |
At first i try with 8.11.3, then i see you make this work on a newer version so i tried with 10.4.1... but still the same problem.
Error code on console at sending email:
Код:
F:\Users\Administrator\Desktop\SA:MP Server\v0.2.3 w/advanced login portal>node sampmail.js Server running on http://192.168.0.19:7777/nl686063a020a1d...0738Client (192.168.0.19) requested /sampmail.js?pw=mypassword&action=sendm ================ SENDING EMAIL ================ De: Mail Test To: myemail@hotmail.com Subject: test Text: this works, but doesn't finish the email sending =============================================== [192.168.0.19] -> 400: Error
Код:
[SAMPMAILJS] Server returned a response 400
Код:
#include <a_samp> #undef MAX_PLAYERS #define MAX_PLAYERS 100 #include <crashdetect> #include <sampmailjs> #include <YSI_Storage\y_ini> #include <YSI_Data\y_iterate> #include <YSI_Coding\y_timers> #include <YSI_Core\y_utils> #include <YSI_Server\y_flooding> #include <djson> //later i'll replace this with y_ini... i'm so lazy don't judge me :P #include <GM_Hooks> //some personal hooks, not more than 3 or 4 simple functions. #include <yom_buttons> #include <samp-dl-compat> #include <Miles> // Some hooks. #include <fixes> #include <sscanf2> #include <streamer> #include <Pawn.CMD> #include <NewMenus> //mselection w/ big interface changes #include <mSelection> #include <progressbar> #include <faderscreen> #include <AntiCheat> #define FOREACH_NO_BOTS #define FOREACH_NO_ACTORS #pragma option -d3
Greetings!