kakshay21 / verify_email

verify-email can verify any email address by efficiently checking the domain name and pinging the handler to verify its existence.
https://pypi.org/project/verify-email/
MIT License
133 stars 32 forks source link

Email Verification does not work in a separate thread. #46

Closed JacobHagberg closed 1 year ago

JacobHagberg commented 2 years ago

If I create a new thread and try to verify an email in that thread, it does not work. Error: RuntimeError: There is no current event loop in thread 'Thread-1 (ThreadTarget)'.

kakshay21 commented 2 years ago

can you try once with 2.4.4 version? pip3 install verify-email==2.4.4.dev0

Avx11 commented 1 year ago
                                Random random = new Random();
                                code = random.nextInt(8999)+1000;
                                String url = "//github.com/kakshay21/verify_email";
                                RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());
                                StringRequest stringRequest= new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {
                                    @Override
                                    public void onResponse(String response) {
                                        Toast.makeText(OTP_Activity.this, ""+response, Toast.LENGTH_SHORT).show();

                                    }

form this code i cant use the url and i don't how to created ):

Avx11 commented 1 year ago

I am working in android studio using java to verify Email otp

kakshay21 commented 1 year ago

check: https://github.com/kakshay21/verify_email/issues/48#issuecomment-1685262024