mirror of https://github.com/M66B/FairEmail.git
Raw send failed exception
This commit is contained in:
parent
612c252313
commit
b882b821a7
|
@ -391,6 +391,8 @@ public class ServiceSend extends LifecycleService {
|
|||
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
nm.cancel("send", message.identity.intValue());
|
||||
} catch (MessagingException ex) {
|
||||
// Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 Refused. Sending to remote addresses (relaying) is not allowed.
|
||||
/*
|
||||
if (ex instanceof SendFailedException) {
|
||||
SendFailedException sfe = (SendFailedException) ex;
|
||||
|
||||
|
@ -414,7 +416,7 @@ public class ServiceSend extends LifecycleService {
|
|||
sfe.getValidUnsentAddresses(),
|
||||
sfe.getInvalidAddresses());
|
||||
}
|
||||
|
||||
*/
|
||||
db.identity().setIdentityError(ident.id, Helper.formatThrowable(ex));
|
||||
|
||||
EntityLog.log(this, ident.name + " last attempt: " + new Date(message.last_attempt));
|
||||
|
|
Loading…
Reference in New Issue