I have an option to "invite all" in my device contacts email to use my iOS application through MFMailComposeViewController. Its working fine right now. But i want to know the limitation of recipients can allow in a single mail from Apple. Herewith i added the code to send mails. Here contactList
is an array. Assume like this array contains more than 2000 email id's.
@IBAction func act_InviteAllInContacts(sender: AnyObject)
{
var contactList : NSMutableArray = NSMutableArray()
contactList = addressBookClassObj.getContactNames()
var picker = MFMailComposeViewController()
picker.mailComposeDelegate = self
picker.setSubject("APPLICATION NAME")
picker.setMessageBody("Hi! Checkout this app https://itunes.apple.com/us/app***********", isHTML: true)
picker.setToRecipients(contactList as [AnyObject])
presentViewController(picker, animated: true, completion: nil)
}
Need advice: is it possible to send mails to all the recepient or message will be failure.