You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I've noticed an unexpected behavior regarding the mail notification.
When the SMTP authentication is resulting in an error, the mail is purged instead of being kept and sent later.
Steps to reproduce
Set on purpose a wrong SMTP password
Generate an activity (adding a user to a group for example)
Trigger the sendEmail function using occ activity:send-mails
The oc_activity_mq table is now empty
I have a log error not caught from the Activity App but from symfony directly
Expected behaviour
The mail queue shouldn't be purged and my mail should be postponed until the SMTP password is corrected.
Actual behaviour
The mail queue is purged and my mail lost.
From my limited understanding, the smtp error should be caught by this code: https://github.com/nextcloud/activity/blob/master/lib/MailQueueHandler.php#L364, however the string Failed sending activity email to user is nowhere to be seen in my logs. Neither are the other error strings I could find on the codebase (missing email, invalid email address, parser error...)
Server configuration
Nextcloud version: 27.1.7.2
Activity version: 2.19.0
Loglevel 0 so I can see the debug logs
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Hello,
I've noticed an unexpected behavior regarding the mail notification.
When the SMTP authentication is resulting in an error, the mail is purged instead of being kept and sent later.
Steps to reproduce
occ activity:send-mails
Expected behaviour
The mail queue shouldn't be purged and my mail should be postponed until the SMTP password is corrected.
Actual behaviour
The mail queue is purged and my mail lost.
From my limited understanding, the smtp error should be caught by this code: https://github.com/nextcloud/activity/blob/master/lib/MailQueueHandler.php#L364, however the string
Failed sending activity email to user
is nowhere to be seen in my logs. Neither are the other error strings I could find on the codebase (missing email, invalid email address, parser error...)Server configuration
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Logs
Nextcloud log (data/nextcloud.log)
Best regards,
The text was updated successfully, but these errors were encountered: