SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 13/06/2018, 04:17 PM   #11
ByMatt20030
Big Clucker
 
Join Date: Jul 2016
Posts: 76
Reputation: 0
Default Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS

Quote:
Originally Posted by bruxo00 View Post
Please turn THIS on on the sender account, test it and tell me if it worked.
Nope, still same error ;(

Last edited by ByMatt20030; 13/06/2018 at 06:56 PM.
ByMatt20030 is offline   Reply With Quote
Old 13/06/2018, 07:23 PM   #12
bruxo00
High-roller
 
bruxo00's Avatar
 
Join Date: Oct 2012
Location: Portugal
Posts: 1,024
Reputation: 134
Default Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS

Quote:
Originally Posted by ByMatt20030 View Post
Nope, still same error ;(
I've made some changes to the code, download the new .js version from github and try again and let me know. Thanks!
__________________
RELEASES

[INC] SAMPMailJS
[FS] doxIT!
[GM] Paradise City Roleplay
[TOOL] bAnticheat
[TOOL] Logs Checker
[TUTORIAL] Email confirmation system
bruxo00 is offline   Reply With Quote
Old 13/06/2018, 07:33 PM   #13
ByMatt20030
Big Clucker
 
Join Date: Jul 2016
Posts: 76
Reputation: 0
Default Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS

Quote:
Originally Posted by bruxo00 View Post
I've made some changes to the code, download the new .js version from github and try again and let me know. Thanks!
Now it works perfectly!

Thanks for the support, have a nice day
ByMatt20030 is offline   Reply With Quote
Old 13/06/2018, 07:39 PM   #14
bruxo00
High-roller
 
bruxo00's Avatar
 
Join Date: Oct 2012
Location: Portugal
Posts: 1,024
Reputation: 134
Default Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS

Quote:
Originally Posted by ByMatt20030 View Post
Now it works perfectly!

Thanks for the support, have a nice day
No problem, glad it worked! Thanks!
__________________
RELEASES

[INC] SAMPMailJS
[FS] doxIT!
[GM] Paradise City Roleplay
[TOOL] bAnticheat
[TOOL] Logs Checker
[TUTORIAL] Email confirmation system
bruxo00 is offline   Reply With Quote
Old 14/06/2018, 04:48 PM   #15
Verc
Big Clucker
 
Join Date: Apr 2018
Posts: 67
Reputation: 20
Default Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS

It should work if I put my sampmail.js file ij my vps and I'm testing them in my windows right?
Verc is offline   Reply With Quote
Old 14/06/2018, 06:00 PM   #16
bruxo00
High-roller
 
bruxo00's Avatar
 
Join Date: Oct 2012
Location: Portugal
Posts: 1,024
Reputation: 134
Default Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS

Quote:
Originally Posted by Verc View Post
It should work if I put my sampmail.js file ij my vps and I'm testing them in my windows right?
Yes it should.
__________________
RELEASES

[INC] SAMPMailJS
[FS] doxIT!
[GM] Paradise City Roleplay
[TOOL] bAnticheat
[TOOL] Logs Checker
[TUTORIAL] Email confirmation system
bruxo00 is offline   Reply With Quote
Old 15/06/2018, 10:55 AM   #17
Verc
Big Clucker
 
Join Date: Apr 2018
Posts: 67
Reputation: 20
Default Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS

It still doesnt work.

And,I don't understand what to define in the url.
#define SAMPMAILJS_URL "172.xx.xx.xx:8080"
what did I do wrong?I put sampmail.js in /root/
404 is the response code I got.

My configs:
PHP Code:
var localIP "127.0.0.1";
var 
port 8080;
var 
httpPassword "1234";
var ******
_Account "[email protected]";
var ******
_ClientID "8xxxx.apps.******usercontent.com";
var ******
_ClientSecret "xxxx";
var ******
_RefreshToken "xxxxxxxxxxxx"
PHP Code:
#define SAMPMAILJS_URL "172.xxx.xxx.xxx:8080" // IP + PORT of the server running the NodeJS script
#define SAMPMAILJS_PASSWORD "1234" // This password should be the same as the NodeJS script
#define SAMPMAILJS_CONSOLELOG 1 // Log some information on console
#define SAMPMAILJS_MAXPOSTDATA 2048 // Cellsize of the variable that holds the data sent to the script. Lower for small emails, higher for more extense emails 
the URL is my VPS IP.
Verc is offline   Reply With Quote
Old 15/06/2018, 11:53 AM   #18
bruxo00
High-roller
 
bruxo00's Avatar
 
Join Date: Oct 2012
Location: Portugal
Posts: 1,024
Reputation: 134
Default Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS

Your localIP is wrong, you can't use 127.0.0.1, it will only listen to the localhost and will not accept external connections. Put your VPS external IP in the localIp variable and try again.
__________________
RELEASES

[INC] SAMPMailJS
[FS] doxIT!
[GM] Paradise City Roleplay
[TOOL] bAnticheat
[TOOL] Logs Checker
[TUTORIAL] Email confirmation system
bruxo00 is offline   Reply With Quote
Old 16/06/2018, 07:56 AM   #19
Verc
Big Clucker
 
Join Date: Apr 2018
Posts: 67
Reputation: 20
Default Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS

it still doesn't work,do I have to move my sampmail.js file? It's currently at /root/
Verc is offline   Reply With Quote
Old 16/06/2018, 08:24 AM   #20
cuber
Gangsta
 
cuber's Avatar
 
Join Date: Oct 2016
Location: KS.
Posts: 780
Reputation: 134
Default Re: SAMPMailJS | Send Emails Easily | HTML |Templates | NodeJS

This is a very useful include. Also, edit "trough" to "through".
cuber is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] SAMPMailJS [NodeJS] bruxo00 Lanšamentos/Releases 41 17/06/2018 10:14 PM
Receive, Send and answer to EMails INGAME !!! Trooper[Y] Screenshots and Videos 4 08/04/2011 04:58 AM
Using HTTP to send emails Jochemd Help Archive 3 19/02/2011 11:28 AM
can someone list some GTA HTML templates!?!?! SanMarinoRP Everything and Nothing 4 04/09/2009 09:57 PM


All times are GMT. The time now is 02:22 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.