GmailBackground icon indicating copy to clipboard operation
GmailBackground copied to clipboard

Connection Error

Open Kostarooly opened this issue 8 years ago • 13 comments

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

Kostarooly avatar Feb 13 '17 17:02 Kostarooly

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

gjohnrao avatar Mar 01 '17 04:03 gjohnrao

same problem

gtestault avatar Mar 07 '17 20:03 gtestault

Any update on this error? Im having the same issue

osamainam777 avatar Mar 16 '17 09:03 osamainam777

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

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

huxley27 avatar Apr 12 '17 08:04 huxley27

i also have same error any idea why ?

ameerhamza6733 avatar Jul 09 '17 14:07 ameerhamza6733

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.

CRivasGomez avatar Jul 17 '17 19:07 CRivasGomez

same problem!

juanlabrador avatar Jul 25 '17 03:07 juanlabrador

i end up sending send intent to gamil app

ameerhamza6733 avatar Jul 25 '17 06:07 ameerhamza6733

It works bro thanx alot

cheekushivam avatar Aug 28 '17 19:08 cheekushivam

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

klaszlo8207 avatar Feb 08 '19 09:02 klaszlo8207

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

klaszlo8207 avatar Feb 08 '19 18:02 klaszlo8207

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

and turn On ACCESS

after that it is WORKING

thanks

sandeep7788 avatar May 10 '21 09:05 sandeep7788

This also worked for me

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

and turn On ACCESS

after that it is WORKING

thanks

mich-quantum avatar May 09 '22 12:05 mich-quantum