Jump to content
  • 0

Has anyone managed to make the password recovery system work?


Question

Posted

First, I apologize for my English.

I would really like to understand how the engine's password recovery system works, as I always configure everything correctly, as it always returns an error or simply doesn't send it to the player.

Is the system buggy?

20 answers to this question

Recommended Posts

  • 0
Posted
1 minute ago, HelenaToDev said:

"SmtpSettings": {
    "FromAddress": "[email protected]",
    "FromName": "Suporte - Vina Fluer",
    "Host": "smtp.gmail.com",
    "Port": 465, <--- This to 587
    "UseSsl": false, <--- This change to True
    "Username": "[email protected]",
    "Password": "me password"

 

  • 0
Posted
Just now, HelenaToDev said:

I tried with these changes, but it still didn't work. :61_sob:

Strange, with all the configs that i said the system will work fine
You've restarted the server?

Can you give me a screenshot of the error on your server?

  • 0
Posted

Bcause there is my configs:
 

Spoiler


  "SmtpSettings": {
    "FromAddress": "[email protected]",
    "FromName": "Inmortal Tower",
    "Host": "smtp.gmail.com",
    "Port": 587,
    "UseSsl": true,
    "Username": "[email protected]",
    "Password": "MyPassword"
  },

and i have the less secure apps enabled for "[email protected]"

unknown.png

 

The server will give to you an error if anything goes wrong, but for apply correctly the changes you need to restart the server, and maybe with that will work fine

  • 0
Posted
15 minutes ago, HelenaToDev said:

but on console of the engine, no errors appear, not even in logs

A
If you dont have errors on the console the system its working fine xD
Maybe you'll need to view on the spam box or eliminated emails
(If you try to restore your password, and NO ERRORS APPEAR ON THE CONSOLE, means the email was sended succesfully to the email)
But, if you have a big error on the console, that means, the system doesn't was configured correctly

So, i think you've the possible next problems:

  • You had maked your account with any error on the email to restore (i.e: suportee[email protected] / [email protected])
  • You didn't check your spambox or the eliminated folder on your email to restore

The possibles solutions i'have for you:

  • 1) Try making a new account on your engine with a new email, and try to restore to that email (You can do the new acc with my email too : [email protected])
  • 1-b) if you use my email i'll check if the email its sended correctly to me
  • 2) I know it will sound repetitive, but check your spam and deleted mail box

 

i'll be here if you need more help

 

Here's another example:

unknown.png

  • 0
Posted

Yes, I also checked the Spam box, created any email, created an account in the game and then tried to reset the password...
Nothing was sent to the registered email, I'm going crazy, he's getting lost in limbo.
I've already checked if my VPS is blocking any outbound ports, but nothing is blocking

  • 0
Posted

Hell, it's weird, if the email was blocked by the VPS the console would throw an error.
But the email seems to come out, and as you say
"It stays in limbo"

i don't know how to help you better :58_disappointed_relieved:

  • 0
Posted
3 minutes ago, HelenaToDev said:

is it Windows or Linux?

Windows, i have a own PC dedicated to hosting the game here on Argentina

Bcause i had a lot of problems with the VPS

(The only one who was worked fine for me, was the Hosting of JC)

 

unknown.png

  • 0
Posted
1 minute ago, HelenaToDev said:

but I'm suspecting that it's the hosting that's blocking emails...

Me too
if you want i can help u to test the server with my private hosting pc

(Its safe, don't worry)

 

PS: For security reasons, all tests must be private for the confidentiality of some data.

The test will undoubtedly be about the "Blocking" of your VPS (but we are 95% sure without this test, that it is your VPS that blocks the emails)

  • 0
Posted

Ive made a simple code to test in VPS if email system is blocking.

 

Quote

using System;
using System.Net;
using System.Net.Mail;
using System.Text;

namespace EnviarEmails
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Digite seu e-mail:");
            string email = Console.ReadLine();
            Console.WriteLine("Digite sua senha:");
            string senha = Console.ReadLine();
            Console.WriteLine("Digite para quem quer enviar:");
            string emailDestinatario = Console.ReadLine();
            Console.WriteLine("Digite o Título do Email:");
            string titulo = Console.ReadLine();
            Console.WriteLine("Digite a mensagem:");
            string mensagem = Console.ReadLine();


            Console.WriteLine("Aperte ENTER para enviar");
            Console.ReadLine();

            try
            {
                MailMessage mailMessage = new MailMessage(email, emailDestinatario);

                mailMessage.Subject = $"{titulo}";
                mailMessage.IsBodyHtml = true;
                mailMessage.Body = $"<p> {mensagem} </p>";
                mailMessage.SubjectEncoding = Encoding.GetEncoding("UTF-8");
                mailMessage.BodyEncoding = Encoding.GetEncoding("UTF-8");

                SmtpClient smtpClient = new SmtpClient("smtp.gmail.com", 587);

                smtpClient.UseDefaultCredentials = false;
                smtpClient.Credentials = new NetworkCredential(email, senha);

                smtpClient.EnableSsl = true;

                smtpClient.Send(mailMessage);

                Console.WriteLine("Seu email foi enviado com sucesso! :)");
                Console.ReadLine();
            }
            catch (Exception)
            {
                Console.WriteLine("Houve um erro no envio do email :(");
                Console.ReadLine();
            }
        }
    }
}
 

And when I open the program on the VPS, I can send an email normally through port 587

  • 0
Posted (edited)

I tested this too but its not working for me. I tried the same config but my credentials but seems to not be sending from the server? I use JC hosting.

I use 0.7.0.126.

Any suggestions?

 

  "SmtpSettings": {
    "FromAddress": "[email protected]",
    "FromName": "Crelasia Admin",
    "Host": "smtp.gmail.com",
    "Port": 587,
    "UseSsl": true,
    "Username": "[email protected]",
    "Password": "verysecretpassword"
  },

 

Update:

After lots of testing I narrowed down to the mail is not received by hotmail accounts, gmail accounts and other works.

 

 

Edited by Worldofjimmy
Update
  • 0
Posted
3 hours ago, Worldofjimmy said:

I tested this too but its not working for me. I tried the same config but my credentials but seems to not be sending from the server? I use JC hosting.

I use 0.7.0.126.

Any suggestions?

 

  "SmtpSettings": {
    "FromAddress": "[email protected]",
    "FromName": "Crelasia Admin",
    "Host": "smtp.gmail.com",
    "Port": 587,
    "UseSsl": true,
    "Username": "[email protected]",
    "Password": "verysecretpassword"
  },

 

Update:

After lots of testing I narrowed down to the mail is not received by hotmail accounts, gmail accounts and other works.

 

 

I already suspected that, I'll test it here

  • 0
Posted

it's not a gmail limitation (I tested it using other email sending programs) it seems to be a problem with the engine, with hotmail domains, which simply go to limbo.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...