mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Assume SMTP connection authenticated if empty password
This commit is contained in:
parent
2133a05df5
commit
67d72b73ea
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,8 @@
|
|||
|
||||
package com.sun.mail.smtp;
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
import java.util.*;
|
||||
|
@ -864,6 +866,9 @@ public class SMTPTransport extends Transport {
|
|||
}
|
||||
}
|
||||
|
||||
if (TextUtils.isEmpty(passwd))
|
||||
return true;
|
||||
|
||||
if (mex != null) {
|
||||
closeConnection();
|
||||
throw mex;
|
||||
|
|
Loading…
Reference in a new issue