[Include] SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS
#6

Quote:
Originally Posted by ByMatt20030
Посмотреть сообщение
Hi!, first of all... congrats, this is incredible.

I have error 400 on response of SendEmail...
My code:
Код:
SendEmail("Mail Test", "***********@hotmail.com", "test title", "does this works? the answer is the same of:  did you see the title? -_-| try number #53816 - year -212 BC"); //i send this on ongamemodeinit.


//sampmailjs.inc:
#define SAMPMAILJS_URL "192.168.0.19:7777" // i tried with 127.0.0.1:7777 but same result...
#define SAMPMAILJS_PASSWORD "*******" // i have a question of this password, this is the gmail account password? or which?

//sampmail.js
var localIP = "192.168.0.19";
var port = 7777;
var httpPassword = "********"; // i have a question of this password, this is the gmail account password? or which?
var ******_Account = "mymail@gmail.com";
var ******_ClientID = "**********.apps.******usercontent.com";
var ******_ClientSecret = "***********";
var ******_RefreshToken = "*********";
var detailedDebug = 1;
I'm on Windows 7, executing sampmail.js with Windows Command Tool (cmd.exe located in NodeJS directory and sending execute with command "node sampmail.js") because node.exe send me this error at executing the file:
Код:
node sampmail.js
     ^^^^^^^^

SyntaxError: Unexpected identifier
Have a nice day!
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.
Reply


Messages In This Thread
SAMPMailJS | Send Emails Easily | HTML | Templates | NodeJS - by bruxo00 - 08.06.2018, 14:24
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by zerruv - 08.06.2018, 15:02
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by Verc - 10.06.2018, 10:42
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by ByMatt20030 - 13.06.2018, 10:44
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by bruxo00 - 13.06.2018, 12:28
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by bruxo00 - 13.06.2018, 12:36
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by ByMatt20030 - 13.06.2018, 13:27
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by ByMatt20030 - 13.06.2018, 16:17
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by bruxo00 - 13.06.2018, 19:23
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by ByMatt20030 - 13.06.2018, 19:33
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by bruxo00 - 13.06.2018, 19:39
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by Verc - 14.06.2018, 16:48
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by bruxo00 - 14.06.2018, 18:00
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by Verc - 15.06.2018, 10:55
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by bruxo00 - 15.06.2018, 11:53
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by Verc - 16.06.2018, 07:56
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by cuber - 16.06.2018, 08:24
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by bruxo00 - 16.06.2018, 10:18
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by Verc - 16.06.2018, 15:20
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by bruxo00 - 16.06.2018, 23:14
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by Admireal - 17.06.2018, 10:58
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by bruxo00 - 17.06.2018, 12:23
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by XEGARE - 28.06.2018, 17:00
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by bruxo00 - 28.06.2018, 23:55
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by Marshas - 13.07.2018, 08:28
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by bruxo00 - 14.07.2018, 16:07
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by Marshas - 15.07.2018, 09:09
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by bruxo00 - 31.07.2018, 15:19
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by TMapping - 08.08.2018, 08:49
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by bruxo00 - 09.08.2018, 11:33
Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS - by Koplan - 09.08.2018, 11:54

Forum Jump:


Users browsing this thread: 2 Guest(s)