Beispiel #1
0
    public void loadMailParams()
    {
        //Read file with mail info
        Godot.File file = new Godot.File();
        //file.OpenEncryptedWithPass("user://mailFile.dat",Godot.File.ModeFlags.Read,OS.GetUniqueId());

        file.Open("user://mailFile.txt", Godot.File.ModeFlags.Read);
        string serviceUrl, port, email, password;

        serviceUrl = file.GetLine();
        port       = file.GetLine();
        email      = file.GetLine();
        password   = file.GetLine();
        file.Close();

        //Create mail object
        mail = new Mail();
        mail.sendTestMail();
    }