Search code examples
iosemailactivesync

MFMailComposeViewController canSendMail - Exchange Active Sync


I'm writting an iOS application, and I allow users to send e-mail from my application. To detect if they are able to send email, I use the method [MFMailComposeViewController canSendMail].

It works well except if I have an Exchange Active Sync account register. In this case, the canSendMail method returns false !

Anybody know why it seems that MFMailComposeViewController does not recognize my Exchange account as an email account? And what I could do?

Thank you for your help.


Solution

  • It was a problem with my MobileIron configuration. The certificate I received from the MDM does not allow me to send email from another application than Mail.

    So: All works fine with Exchange and MFMailComposeViewController.