Jump to content
Server Maintenance This Week. ×

Get a mail count from the Sent mailbox


This topic is 2963 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi

I need to get a count of email in the sent folder, that were sent today. I've been successful with Inbox but not Sent. When I try 

EmailGetMessageCount ( "mailbox=Sent")

I get ERROR. Is it possible to get a mail count from Sent?

Link to comment
Share on other sites

Hello,

More than likely the error is that "sent" does not exist. You can check this by calling EmailLastError after you get ERROR. Call the function EmailListMailboxes. Be sure that you list all the mailboxes. You can do so by calling EmailListMailboxes("";"true") . This will list all mailboxes for the account. 

Link to comment
Share on other sites

Thanks Ryan for your reply. I used your advice but it still didn't work. Here's what happened.

EmailListMailBoxes showed that INBOX and Sent Items among others existed. But when I do:
EmailGetMessageCount ( "mailbox = Sent Items") or
EmailGetMessageCount ( "mailbox = INBOX") 
I get an error that says the mailbox does not exist. If I do
EmailGetMessageCount 
I get the mail count for INBOX.

Any further suggestion?

Link to comment
Share on other sites

I already did that. In my previous message I said

EmailListMailBoxes showed that INBOX and Sent Items among others exist. But when I do:
EmailGetMessageCount ( "mailbox = Sent Items") or
EmailGetMessageCount ( "mailbox = INBOX") 
I get an error that says the mailbox does not exist.

Link to comment
Share on other sites

This topic is 2963 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.