Website contact forms just stopped working

adriangrz

Verified User
Joined
Mar 23, 2021
Messages
65
Hi,

I saw couple days ago that all forms in multiple websites just stopped working. I have several Wordpress websites on one server, Im using latest DirectAdmin, all updates installed and it just not sending emails from forms.

When I try to send message from form I get an error: "There was an error trying to send your message. Please try again later."
It is not from wordpress fault, it just stopped on all websites in different WP versions.

Same case when I try to send simple form in clean php script.

It looks like phpmail? function stopped or was blocked. I wasn't made any configuration changes / not touched server in that time, so I assume it is not my changes.

Do you have any ideas how to make it work again?

Please help me fix this.
 
Log viewer in DA is for apache logs, not php mail.
PHP mail logfiles normally can be found in the /home/user/.php directory.

Also you can adjust .htaccess to create some logfile for a php script. You might try to put some of these in the users .htaccess file temporarily.

Code:
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag log_errors on
php_value error_log /home/user/domains/userdomain.com/public_html/PHPERROR.log
then try to send a mail and check the created logfile.

Adjust to your own needs and ofcourse, as always, use at your own risk. ;)
 
Back
Top