Leena
Leena

Reputation: 2676

Mail feature in iPad

I have used MFMailComposeViewController to implement email functionality in my app. It is working on the iPhone but not on the iPad. What can be the reason?

Thanks

Upvotes: 1

Views: 116

Answers (2)

Rahul Chavan
Rahul Chavan

Reputation: 510

Sanity Check for mail sending

BOOL canSendmail = [MFMailComposeViewController canSendMail];

    if (canSendmail) {
        NSLog(@"EmailPhoto can send");
    [self displayMailComposerSheet];
    }

Upvotes: 0

phi
phi

Reputation: 10733

Maybe there is no email account set up on the iPad. Try to check that by using [MFMailComposeViewController canSendMail] before presenting your view controller.

Upvotes: 2

Related Questions