March 9, 20169 yr 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?
March 11, 20169 yr 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.
March 14, 20169 yr Author 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?
March 14, 20169 yr Try using EmailListMailboxes to figure out the valid name for your sent folder and then pass that into EmailGetMessageCount.
March 14, 20169 yr Author 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") orEmailGetMessageCount ( "mailbox = INBOX") I get an error that says the mailbox does not exist.
March 14, 20169 yr My apologies, I did not notice that. However, are you doing: EmailGetMessageCount ( "mailbox = INBOX") or EmailGetMessageCount ( "mailbox=INBOX") Try doing it without the spaces.
March 14, 20169 yr Author Wow. I never would have thought of that. Thank you so much. It now works. From now on, no spaces around = anywhere in the email plugin. Thanks Gary
Create an account or sign in to comment