Skip to main content

Email sent via PHP mail() is not sent immediately

Comments

2 comments

  • Reado
    Sorted! Had to add sleep(1) between mail() and shell_exec(). Now I'm no longer getting the spooler file locked error, but would still like to know what could be causing mail not to send immediately regardless without the additional shell_exec() call, if anyone can suggest anything? Thanks.
    0
  • cPanelMichael
    Instead, the email is queued by Exim

    Hello, Do you notice any output to /var/log/exim_mainlog when the message is queued? Thank you.
    0

Please sign in to leave a comment.