Assume SMTP connection authenticated if empty password

pull/198/head
M66B 4 years ago
parent 2133a05df5
commit 67d72b73ea

@ -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…
Cancel
Save