Попробуйте это
//MARK:- Send Mail
//MARK:-
func sendMail(emailTitle : String , messageBody : String , toRecipents : [String]){
if (MFMailComposeViewController.canSendMail()) {
let mc: MFMailComposeViewController = MFMailComposeViewController()
let emailTitle = emailTitle //Feedback
let messageBody = messageBody //"Feature request or bug report?"
let toRecipents = toRecipents //["friend@stackoverflow.com"]
mc.mailComposeDelegate = self
mc.setSubject(emailTitle)
mc.setMessageBody(messageBody, isHTML: false)
mc.setToRecipients(toRecipents)
self.present(mc, animated: true, completion: nil)
}else{
//Show alert
}
}
Функция sendMail для вызова
let urlToShare = "http://www.appzoy.com"
self.sendMail(emailTitle: "Title of Mail", messageBody: "Hey I just gave an Awesome Assessment on UAssess App you can also try it. I scored , Try to beat my score \(urlToShare)", toRecipents: ["abc@mail.com", "def@mail.com"])