none
Is it possible to check if the mailbox limit has been reached? RRS feed

  • Question

  • Hi,

    We have an Outlook 2007 addin that sends an email on behalf of the user. However if the user is over the exchange mailbox limit for sending emails we are getting both exceptions and 'dumping' to the Outbox queue.

    Is there a way to query if the user will be able to successfully send a message at the present time, or a specific exception we can catch around (_MailItem).send() (currently we catch all exceptions and give a generic error message).

    If possible we need this for 2010 as well.

    Thanks

    Saturday, March 21, 2015 9:51 AM

All replies

  • Hello Mustafa,

    The Outlook object model doesn't provide such information. 

    Exchange 2010 and 2013 can limit the number of messages a user sends, using the RecipientRateLimit and MessageRateLimit parameters in a Throttling Policy. These policies apply to both internal and Internet email. See Limit the number of Internet messages a user can send for more information. 

    Saturday, March 21, 2015 10:04 AM
  • Thanks,

    Is there definately no exception then? Is there a list of exceptions .Send() throws I could have a look at (Outlook 2007 & 2010)

    Cheers,

    Sunday, March 22, 2015 8:47 PM
  • There is no such exceptions list. Try to base your code on the HRESULT value of the COMException class when the limit is reached.
    Sunday, March 22, 2015 9:05 PM