We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Email suddenly not working
Our new site has been live for a few months now and we have been using Office 365 as our SMTP in Perch. The email test worked just find and form was sending emails like it should, but suddenly it stopped working a few weeks ago. I have been investigating the problem with Microsoft and our webhotel's host, but they did not find anything indicating a problem on their end. I've posted my email settings in config.php below.
define('PERCH_EMAIL_FROM', 'email@example.com'); define('PERCH_EMAIL_FROM_NAME', 'Yhteydenotot nettisivuilta'); define('PERCH_EMAIL_METHOD', 'smtp'); define('PERCH_EMAIL_HOST', 'smtp.office365.com'); define('PERCH_EMAIL_AUTH', true); define('PERCH_EMAIL_SECURE', 'tls'); define('PERCH_EMAIL_PORT', 587); define('PERCH_EMAIL_USERNAME', 'firstname.lastname@example.org'); define('PERCH_EMAIL_PASSWORD', '##########');
(I have censored password and used a dummy email account in the code above. The account is a licensed, working O365 Business account and the password is 100% correct on my real setup)
Could it be possible, that something is changed or wrong with Perch? I haven't done any changes myself but still the email stopped working some time ago. Only thing I did was some email template modifications during the same time window but it still worked a few times after that. Then it stopped working altogether. Might be a coincidence, as I reverted the template back to the previously working version and it didn't help.
To sum it up, when I try to do the email test, it loads a few minutes and then gives me a "504 Gateway Time-out - openresty" error, and if I try to refresh/login during that time, it just continues loading and finally forwards me back to Perch login page. That still seems like a problem with the webhotel's host server? Still they couldn't find anything indicating to be the root cause for this.
I appreciate any insight and help regarding this problem!
Kind regards, Tomi
Want to reply to this thread?Login with Perch