Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

email sent with php mail() function, it arrives around 12 hours later?

Discussion in 'E-mail Discussion' started by dakanadaka, Feb 21, 2018.

  1. dakanadaka

    dakanadaka Registered

    Joined:
    Feb 21, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Amsterdam
    cPanel Access Level:
    Website Owner
    What is the first thing to do when email which are sent from php mail() function arrive 12 hours later to mailbox.
    So yesterday I sent email and after 12 hours or less it arriaves in my mailbox? Where to check first? I have also WHM access.

    I think problem was when we updated to 7.1 php version from php 5.6.
    Sending from php mail() function works, but sends the email later on like 12 hours later
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Do you have root access to the server? If so, you can search for the message in /var/log/exim_mainlog to get a better idea of the time frame and actions that occurred after sending the message. EX:

    Code:
    exigrep MessageSubject /var/log/exim_mainlog
    You may also find this thread helpful:

    Reading and Understanding the exim main_log

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice