Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection Error #29

Open
Kostarooly opened this issue Feb 13, 2017 · 13 comments
Open

Connection Error #29

Kostarooly opened this issue Feb 13, 2017 · 13 comments

Comments

@Kostarooly
Copy link

Kostarooly commented Feb 13, 2017

I get : Error sending email, check your connection

screenshot_2017-02-13-19-09-20 1
screenshot_2017-02-13-19-09-27 1
Any idea anyone ? Sorry for the big pics

@gjohnrao
Copy link

gjohnrao commented Mar 1, 2017

I am facing the exact same issue, have you found a solution for this?

@gtestault
Copy link

same problem

@osamainam777
Copy link

Any update on this error? Im having the same issue

@huxley27
Copy link

enable google less secure apps. it works on my app.

https://www.google.com/settings/security/lesssecureapps

@ameerhamza6733
Copy link

i also have same error any idea why ?

@CRivasGomez
Copy link

I'm having the same issue. I enabled Google less secure apps but it didn't work.

I cloned your repository and compiled it, but it gave me the same issue.

@juanlabrador
Copy link

same problem!

@ameerhamza6733
Copy link

i end up sending send intent to gamil app

@cheekushivam
Copy link

It works bro thanx alot

@klaszlo8207
Copy link

The first message was sent, but the second and third not. Check your connection...

@klaszlo8207
Copy link

klaszlo8207 commented Feb 8, 2019

I found the BUG in the BackgroundMail.java class

Bad code is


  public Builder withAttachments(@NonNull ArrayList<String> attachments) {
            this.attachments.addAll(attachments);
            return this;
        }

        public Builder withAttachments(String... attachments) {
            this.attachments.addAll(Arrays.asList(attachments));
            return this;
        }

        public Builder withAttachments(@ArrayRes int attachmentsRes) {
            this.attachments.addAll(Arrays.asList(context.getResources().getStringArray(attachmentsRes)));
            return this;
        }


good is


  public Builder withAttachments(@NonNull ArrayList<String> attachments) {
            this.attachments.clear();
            this.attachments.addAll(attachments);
            return this;
        }

        public Builder withAttachments(String... attachments) {
            this.attachments.clear();
            this.attachments.addAll(Arrays.asList(attachments));
            return this;
        }

        public Builder withAttachments(@ArrayRes int attachmentsRes) {
            this.attachments.clear();
            this.attachments.addAll(Arrays.asList(context.getResources().getStringArray(attachmentsRes)));
            return this;
        }

Now it is working

@sandeep7788
Copy link

Go to https://www.google.com/settings/security/lesssecureapps

and turn On ACCESS

after that it is WORKING

thanks

@mich-quantum
Copy link

This also worked for me

Go to https://www.google.com/settings/security/lesssecureapps

and turn On ACCESS

after that it is WORKING

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests