View Single Post
Old 13/06/2018, 01:36 PM   #6
bruxo00
High-roller
 
bruxo00's Avatar
 
Join Date: Oct 2012
Location: Portugal
Posts: 1,118
Reputation: 152
Default Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS

Quote:
Originally Posted by ByMatt20030 View Post
Hi!, first of all... congrats, this is incredible.

I have error 400 on response of SendEmail...
My code:
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:
Code:
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.
__________________
RELEASES

[INC] SAMPMailJS
[FS] doxIT!
[GM] Paradise City Roleplay
[TOOL] bAnticheat
[TOOL] Logs Checker
[TUTORIAL] Email confirmation system

www.mp3it.cc www.diogomartino.com
bruxo00 is offline   Reply With Quote