I can't send emails from PHP

mundofp

New member
Joined
Feb 19, 2023
Messages
2
I have a form on my website and it does not send mail. These emails will be sent via PHP. I have the firewall disabled and the ports open. The PHP form works with an external Amazon SES smtp server. When I used cPanel I had no problem.

I use the latest version of DirectAdmin (1,646) PHP 8.1 and OS Alma Linux 9 on ARM
 
You might want to test if php mail is working on your server.
Maybe with this (click) test script.
Use at your own risk.

Also check the logfiles, mostly the logs point to some cause.
 
I get an accepted message. But still I get nothing.


You might check a Junk/SPAM folder of your email account. The accepted message from a remote SMTP server means, that an email was accepted for further delivery, but it does not necessary mean it won't be filtered and land in INBOX.
 
You're ultimately going to have to check your /var/log/exim/mainlog log to see what happens to the message when it is sent. Or if it even makes it into your Exim queue.
 
Back
Top