SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese > Lançamentos/Releases

Reply
 
Thread Tools Display Modes
Old 21/11/2018, 02:16 AM   #51
RiqueP
Gangsta
 
RiqueP's Avatar
 
Join Date: Jan 2014
Posts: 853
Reputation: 58
Default Re: SAMPMailJS [NodeJS]

Quote:
Originally Posted by CaioTJF View Post
Interessante uma versão dessa include com esse plugin: http://forum.sa-mp.com/showthread.php?t=653362
Eu nem tinha dado tanta atenção a essa delicia :0
__________________
Discord: RiqueP#1666
RiqueP is offline   Reply With Quote
Old 12/05/2019, 01:00 PM   #52
DKN
Little Clucker
 
Join Date: Jan 2018
Posts: 3
Reputation: 0
Default Re: SAMPMailJS - Agora suporta Templates [NodeJS]

Sorry bro, i don't know setup nodejs for windows. You may help me setup it?
DKN is offline   Reply With Quote
Old 13/05/2019, 01:40 PM   #53
bruxo00
High-roller
 
bruxo00's Avatar
 
Join Date: Oct 2012
Location: Portugal
Posts: 1,120
Reputation: 152
Default Re: SAMPMailJS - Agora suporta Templates [NodeJS]

Quote:
Originally Posted by DKN View Post
Sorry bro, i don't know setup nodejs for windows. You may help me setup it?
Just go to https://nodejs.org, download and run the setup. It's that easy.
__________________
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
Old 15/05/2019, 10:04 AM   #54
DKN
Little Clucker
 
Join Date: Jan 2018
Posts: 3
Reputation: 0
Default Re: SAMPMailJS - Agora suporta Templates [NodeJS]

Quote:
Originally Posted by bruxo00 View Post
Just go to https://nodejs.org, download and run the setup. It's that easy.
I don't know use it?
DKN is offline   Reply With Quote
Old 16/05/2019, 01:53 PM   #55
bruxo00
High-roller
 
bruxo00's Avatar
 
Join Date: Oct 2012
Location: Portugal
Posts: 1,120
Reputation: 152
Default Re: SAMPMailJS - Agora suporta Templates [NodeJS]

Quote:
Originally Posted by DKN View Post
I don't know use it?
Download NodeJS, follow this. You can open the script by opening CMD (or linux terminal), navigating to the folder the .js is in with "cd" and opening it with "node sampmail.js".
__________________
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
Old 18/05/2019, 06:18 AM   #56
DKN
Little Clucker
 
Join Date: Jan 2018
Posts: 3
Reputation: 0
Default Re: SAMPMailJS - Agora suporta Templates [NodeJS]

Quote:
Originally Posted by bruxo00 View Post
Download NodeJS, follow this. You can open the script by opening CMD (or linux terminal), navigating to the folder the .js is in with "cd" and opening it with "node sampmail.js".
Can you give me your Face book?
DKN is offline   Reply With Quote
Old 09/09/2019, 03:54 AM   #57
bruxo00
High-roller
 
bruxo00's Avatar
 
Join Date: Oct 2012
Location: Portugal
Posts: 1,120
Reputation: 152
Default Re: SAMPMailJS [NodeJS]

Como há constantemente pessoas a perguntar como é que se usa isto, eu fiz um vídeo para tornar mais claros os passos a dar para configurar corretamente todos os scripts. Podem assistir em: bit. ly/2m29S0Q
__________________
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
Old 06/10/2019, 09:35 PM   #58
rockys
Big Clucker
 
Join Date: Oct 2018
Location: pawn
Posts: 61
Reputation: 0
Default Re: SAMPMailJS [NodeJS]

Sent HTTP code 404 to 127.0.0.1: Incorrect request
i do all steps but i got an error..
can help me please?
rockys is offline   Reply With Quote
Old 07/10/2019, 01:23 PM   #59
bruxo00
High-roller
 
bruxo00's Avatar
 
Join Date: Oct 2012
Location: Portugal
Posts: 1,120
Reputation: 152
Default Re: SAMPMailJS [NodeJS]

Quote:
Originally Posted by rockys View Post
Sent HTTP code 404 to 127.0.0.1: Incorrect request
i do all steps but i got an error..
can help me please?
You should use the English thread to ask for support in English (https://forum.sa-mp.com/showthread.php?t=654889). The incorrect request means that you are sending a action that the script is not expecting. You can try to debug to see what's going on. Go to line 46 on sampmail.js and add console.log(urlObj); then try to send an email and post the output here.
__________________
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
Old 07/10/2019, 06:39 PM   #60
rockys
Big Clucker
 
Join Date: Oct 2018
Location: pawn
Posts: 61
Reputation: 0
Default Re: SAMPMailJS [NodeJS]

Quote:
Originally Posted by bruxo00 View Post
You should use the English thread to ask for support in English (https://forum.sa-mp.com/showthread.php?t=654889). The incorrect request means that you are sending a action that the script is not expecting. You can try to debug to see what's going on. Go to line 46 on sampmail.js and add console.log(urlObj); then try to send an email and post the output here.
Code:
Microsoft Windows [Version 10.0.18362.388]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd C:\Users\Admin\Desktop\SAMPMailJS-master

C:\Users\Admin\Desktop\SAMPMailJS-master>node sampmail.js
Loaded configs from config.json



{
  machineIp: '127.0.0.1',
  listenPort: 8888,
  httpPassword: 'xxxx',
  enableDebug: true,
  smtp: {
    host: 'smtp.gmail.com',
    auth: {
      type: 'OAuth2',
      user: 'cosminbro990@gmail.com',
      clientId: '692552025615-o91ggvgag46a2nur3pv44df88pp82n35.apps.******usercontent.com',
      clientSecret: '2uvgNyUZDyV12b3WwNWetp3n',
      refreshToken: '1/qgHiF8TwcZzH8qX8rR9GUkVObkoTCTPBe5uKT3X35EtfMyJ9A2Z2TzLQ_aFmN2ba'
    },
    tls: { rejectUnauthorized: true }
  }
}



Server running on http://127.0.0.1:8888/
Url {
  protocol: null,
  slashes: null,
  auth: null,
  host: null,
  port: null,
  hostname: null,
  hash: null,
  search: '?pw=xxxx&action=sendmtmp',
  query: [Object: null prototype] { pw: 'xxxx', action: 'sendmtmp' },
  pathname: '/sampmail.js',
  path: '/sampmail.js?pw=xxxx&action=sendmtmp',
  href: '/sampmail.js?pw=xxxx&action=sendmtmp'
}
Client (127.0.0.1) requested /sampmail.js?pw=xxxx&action=sendmtmp
================ SENDING EMAIL ================
From: cosminbro990@gmail.com
To: cosminbro990@gmail.com
Subject: Bine ai venit pe serverul nostru!
Text: <html>
  <img src='https://i.gyazo.com/cf4f68f94b939c99ccfd0d9f8f51976c.png' height="100" width="300">
  <br><br> Welcome to the server <b>PLAYERNAME</b>! Thank you for joining us!
  <br> Some information about you:
  <br> IP: PADDRESS
  <br> Register Date: DREG
  <br><br> Have fun! Visit us on https://github.com/bruxo00/SAMPMailJS
</html>

===============================================
Sent HTTP code 400 to 127.0.0.1: An error ocurred:
Error: invalid_grant
rockys 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
[Tool/Web/Other] node.ucp - A full-fledged isomorphic UCP [nodejs + reactjs] BroZeus Tools and Files 17 07/04/2018 07:24 PM


All times are GMT. The time now is 04:21 AM.


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