GmailBackground
GmailBackground copied to clipboard
Connection Error
I get : Error sending email, check your connection
Any idea anyone ? Sorry for the big pics
I am facing the exact same issue, have you found a solution for this?
same problem
Any update on this error? Im having the same issue
enable google less secure apps. it works on my app.
https://www.google.com/settings/security/lesssecureapps
i also have same error any idea why ?
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.
same problem!
i end up sending send intent to gamil app
It works bro thanx alot
The first message was sent, but the second and third not. Check your connection...
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
Go to https://www.google.com/settings/security/lesssecureapps
and turn On ACCESS
after that it is WORKING
thanks
This also worked for me
Go to https://www.google.com/settings/security/lesssecureapps
and turn On ACCESS
after that it is WORKING
thanks