PHP sometimes fails to send mail.

using the send mail function encapsulated by class.phpmailer.php to send mail, it is found that it may not be sent once or twice a week. I think it may be the reason for the server, but I don"t know how to check it, and I don"t have the account of the server, so I can"t get into the server.

before doing the sending email function of this website, I have done 5 or 6 (all different websites) sending emails with the same function on other websites (different servers). The code is basically the same, and there is no problem. But to the current site, found that sending mail is somewhat unstable, when the network is unstable, send mail, display is 500, prompt can not find the file that sent mail. Later, once or twice, it could not be sent

.

now to solve this problem, I do not know how to start, I have no experience in this area of investigation, the website does not have this kind of diary, the test also can not encounter this problem, website search can not find similar problems .

Php
Jul.28,2021

add a custom log to the code if you can't find a problem. When something goes wrong, check it out according to the log to see if it is blocked by the email service provider gateway.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e229-2b751.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e229-2b751.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?