let activityViewController = UIActivityViewController (activityItems: contentArray, applicationActivities:nil)
if let popoverController = activityViewController.popoverPresentationController {
popoverController.sourceView = sender
}
self.presentViewController(activityViewController, animated: true, completion: nil)
So basically I want to share the content only through mail and I do not want to show the option of message. Could you help me out with that. Also I want to set the subject of the email through the code