skip to Main Content

I got my forgotten password from API. I want to send that password to the email address. I tried many options but still, I was unable to send that password.

2

Answers


  1. The best way to do this is from your backend using SMTP headers it’s more secure and efficient because it’s sensitive data… Never let your client-side know about this kind of data type. You can do this using bash by following this tutorial.

    Login or Signup to reply.
  2. We can send emails with this tutorial

    BackgroundMail.newBuilder(this)
                    .withUsername(from - emailid)
                    .withPassword(from - emailid password)
                    .withMailto(to - emailid)
                    .withType(BackgroundMail.TYPE_PLAIN)
                    .withSubject("Subject")
                    .withSendingMessageSuccess("email sent successfully")
                    .withBody("Body")
                    .withOnSuccessCallback(new BackgroundMail.OnSuccessCallback() {
                        @Override
                        public void onSuccess() {
                            finish();
                        }
                    })
                    .withOnFailCallback(new BackgroundMail.OnFailCallback() {
                        @Override
                        public void onFail() {
                        }
                    })
                    .send();
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search