I have my Nginx web server running aapanel, and when I try to send an email using mail(); from PHP (8.3), it doesn't send anything, but it doesn't give an error either. I don't see anything in PHP regarding sendmail. How do I enable or add the mail(); capability in PHP with aapanel?
Not send email with mai();
Hello,
Please check if you need to delete the disabled function? You can find the corresponding PHP version in the App Store to delete the prohibited function and restart PHP.
There is some other problem with sending mails, I can't setup Email in Alert Settings (Settings->Alarm->Alarm Settings-Email)
I had a fresh install on an Ubuntu 22.04 about 20 days ago, and that server is OK, today the same setup is not working, it's a fresh Ubuntu 22.04 I can see SYN_SENT on local sever netstat but no packets on the mail server, I've tried port 465, 587 and 25, nothing seems to work.
Both servers are 7.0.17 but the footer on the interface is not the same?
Hello, are there any error messages or screenshots? How did you set it up? Are you using a self-built mail server?
Here are two pictures Server1 is OK Server2 does not send mails,
I can't see anything in the mail server logs, here is netstat from Server2
Same subnet, same gateway, same mail serve, same email settings, Server1 is working, Server2 is not working
Hello,
Are the configuration information the same?
Can I connect to the mail server if it cannot be sent successfully?
telnet mail_server 465
Hi, I've tried to pinpoint the issue, I had 2 servers connecting 2 servers not connecting even with telnet.
I've rebooted the server few times it didn't work before, now rebooting the servers I can telnet, updated to new version 7.0.18 and was able to setup the mail configuration
the strange issue was that I was able to ping the mail host but not telnet 25, 22, even 443, like outgoing connection to that server were blocked, I can telnet google at 443, I checked the remote mail server firewall it was not blocking and finally rebooting the local server solved the issue. I've rebooted it few times before when I was testing it didn't help before.
strange issue but solved for now, I'll monitor and see if the problem returns
Thanks