For my app, I need to know if there's a mail account has soon as the app is launched. Is there a way to do that ?
I don't really know what canSendMail does but it does not seems to verify that.
Thanks
For my app, I need to know if there's a mail account has soon as the app is launched. Is there a way to do that ?
I don't really know what canSendMail does but it does not seems to verify that.
Thanks
canSendMail is actually the right and only way to verify what you want.
if ([MFMailComposeViewController canSendMail]) {
// device is configured to send mail
}
For those looking for a Xamarin solution it is available as a static property, so you can do it something like this:
MFMailComposeViewController.CanSendMail