The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Retrieving number of emails in specific email account

Discussion in 'cPanel Developers' started by icishoot, Jan 6, 2013.

  1. icishoot

    icishoot Registered

    Joined:
    Jun 18, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Good evening,

    I was wondering the best way to retrieve the number of emails a specific account has, both new and total messages in the account?

    Several of my forum users have personal email accounts through the forum domain and I thought it would be neat to display the number of emails they have sitting in their accounts as part of their forum profile - the same way PM's are displayed.

    I have been looking through the cpanel Email API, but nothing is leaping out as what I'm looking for.

    Does API exist for that already? Or am I just going to need to use system calls?


    Thanks,

    Seth
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    You need to query the IMAP service to get this information. To query the IMAP service you will need the user name and password for each account to query.
     
  3. icishoot

    icishoot Registered

    Joined:
    Jun 18, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Ok, thank you


    Seth
     

Share This Page