xcode75 / XManagerPlus

An Xray Manager
https://xcode75.github.io/XMPlusDocs/
255 stars 47 forks source link

[BUG] mail sending not working after latest update #282

Closed amihos closed 10 months ago

amihos commented 10 months ago

Environment

OS: centos 9

PHP version: 7.4

DB version: 5.7.40

Panel Version: v20230817

Debug Info: enable debug in config.php and upload screenshot.

Bug Info

After updating to the latest XMPlus frontend version (1.0 - v20230817), I noticed the email feature is no longer working properly. Here is my settings: image

When I attempt to send an email to a user through the panel, it shows a message that the email was "successfully sent". However, the intended recipient does not actually receive the email. image

I confirmed the email address itself works fine outside of XMPlus by sending and receiving test emails through a regular client. So the address itself does not seem to be the problem.

Additionally, I checked the "queue_messages" table in the database and saw that a record is no longer being created there when I hit send on an email. Previously, all outgoing emails would be logged in this table before sending.

This seems to indicate the issue is occurring somewhere between the frontend "Send" action and the backend email delivery process. Potential areas to troubleshoot further:

Email settings/configuration on the backend Connectivity between front and backend Queue worker process that sends emails from the queue Email logs on the backend for any delivery errors I wanted to document this in case others are running into similar problems after the latest update. Please let me know if any other details about the email sending failure would be helpful to diagnose the root cause. Hoping we can get the email feature working properly again soon.

xcode75 commented 10 months ago

Just do not label issue as a bug just cos you have an issue. I have tested with sendgrid and gmail and no issue. That email successfully sent has nothing to do with queue. Is sent directly to user without queue. Only expired, used or purchase plan are queued, thst depends if user has set to recieve them.

amihos commented 10 months ago

@xcode75 When I am facing an issue that starts happening after an update, how could I possibly know if it's a bug? or if it's happening only to me?

What do you suggest to do?

What I saw was this: since I updated to the latest version my email system stopped working: I did not receive any more backup emails, also when I am sending messages directly to users, they do not receive anything.

So how do you suggest to troubleshoot this? Will it help to reinstall everything from scratch the frontend?