我在struts2中发送电子邮件时遇到问题。 struts2中的错误是 javax.mail.AuthenticationFailedException
代码:
@IBAction func didTapShare(sender: AnyObject) {
let videoURL = NSURL(fileURLWithPath:localVideoPath)
let activityItems = [videoURL, "Check this out!" ]
let activityController = UIActivityViewController(activityItems: activityItems, applicationActivities: nil)
activityController.popoverPresentationController?.sourceView = self.view
activityController.popoverPresentationController?.sourceRect = self.view.frame
self.presentViewController(activityController, animated: true, completion: nil)
}
}