Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application Hangs when sending Test Email #696

Open
justnwaters opened this issue Jun 4, 2023 · 4 comments
Open

Application Hangs when sending Test Email #696

justnwaters opened this issue Jun 4, 2023 · 4 comments
Labels
bug Something isn't working Support Support Questions which should be redirected to the forums forum.itflow.org

Comments

@justnwaters
Copy link

Describe the bug
When I attempt to test sending an email the entire website hangs. It's inaccessible from any device or location until the timeout is over.

Can you reproduce this on the demo at demo.itflow.org
No it works fine in the test environment

Are you on the latest available version of ITFlow, with an up-to-date database structure?
Yes

To Reproduce
I'm using the latest cPanel with 8.1 I'm not sure if you have a script to test that I have every required plugin or maybe the auto install isn't compatible with cPanel.

Expected behavior
Report a successful email sent and be able to check the receiving email box for the email.

Screenshots
NA

Additional context
NA

--

To privately discuss a security issue, please see https://github.com/itflow-org/itflow/security

@github-actions
Copy link

github-actions bot commented Jun 4, 2023

Hello & Welcome! :)

Thanks for taking the time to get in touch. We'll review this issue shortly.

Whilst you're waiting, please feel free to check out the forum.

@wrongecho
Copy link
Collaborator

Hey!

Just for future reference: It's not a great idea to leave your valid mail credentials on the demo :)
However that has assisted in troubleshooting as it rules out your hostname/username/password/encryption being incorrect.

You mentioned you're hosting this on cPanel, are you hosting this yourself? Some providers block outbound mail traffic.

Could you check your PHP error log please? When the mail send fails it should log the PHP Mailer error details there starting with "ITFlow - failed to send email".

Regarding the "freezing": we currently test & send mails in real time rather than putting them into a queue so I guess it blocks the thread until the connection times out (Which also makes me think this is a network issue).
Perhaps we should adjust the timeout to like 10 seconds? (I think 5 mins is the default!).

@wrongecho wrongecho added the Support Support Questions which should be redirected to the forums forum.itflow.org label Jun 7, 2023
@wrongecho
Copy link
Collaborator

I've been messing with the PHP Mailer timeout value and this seems to have no effect on the server hanging if the encryption details are specified incorrectly. PHP Mailer says this is fixed but we're on the latest version and I'm still able to reproduce on Windows and Linux.

PHPMailer/PHPMailer#604

@wrongecho wrongecho added the bug Something isn't working label Jun 24, 2023
@wrongecho
Copy link
Collaborator

We're moving to a queue based mail system across the app, but this bug could still show up on the settings test page. I don't really have any ideas on how to fix it - seems like either an issue with PHP Mailer or PHP itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Support Support Questions which should be redirected to the forums forum.itflow.org
Projects
None yet
Development

No branches or pull requests

2 participants