Hi to everyone!
So...I have something a little unusual to ask here, I guess-
Some times ago I implemented in my project a script capable of accessing a gmail dedicated account and sending an email from there
forums.rpgmakerweb.com
This is the code I used (still thanks to everyone who helped me):
Everything was fine, but I recently noticed that gmail, starting May 30 2022, will no longer support the use of apps classified as less secure; I'm a little worried now about the fate of this feature.
If I am not mistaken, I will need to use OAuth2 authentication from that date on (or am I wrong?).
So my question is: is it possible to update the script? Someone can help?
Thank you 😍
So...I have something a little unusual to ask here, I guess-
Some times ago I implemented in my project a script capable of accessing a gmail dedicated account and sending an email from there
Send an email from inside the game
Let me say this is more an experimental/theoretical idea, so I'm not sure if it will come useful for an actual game or something. Nonetheless I found it interesting and I wanna know something more. So: if the player puts his email address in a variable is there a way to make the game send a...
forums.rpgmakerweb.com
This is the code I used (still thanks to everyone who helped me):
var nodemailer = require('nodemailer');
var transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
user: '[email hidden]',
pass: 'yourpassword'}});
var mailOptions = {
from: '[email hidden]',to: '[email hidden]',subject: 'subject',text: 'content'};
transporter.sendMail(mailOptions, function(error, info){
if (error) {
console.log(error);
} else {console.log('Email sent: ' + info.response);}});
var transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
user: '[email hidden]',
pass: 'yourpassword'}});
var mailOptions = {
from: '[email hidden]',to: '[email hidden]',subject: 'subject',text: 'content'};
transporter.sendMail(mailOptions, function(error, info){
if (error) {
console.log(error);
} else {console.log('Email sent: ' + info.response);}});
Everything was fine, but I recently noticed that gmail, starting May 30 2022, will no longer support the use of apps classified as less secure; I'm a little worried now about the fate of this feature.
If I am not mistaken, I will need to use OAuth2 authentication from that date on (or am I wrong?).
So my question is: is it possible to update the script? Someone can help?
Thank you 😍