发送电子邮件的问题

Issue in sending email

我正在研究使用 Swift 发送电子邮件的示例。我正在使用以下代码:

@IBAction func sendMailButtonAction(sender: UIButton) {

        if MFMailComposeViewController.canSendMail() {
            let mail = MFMailComposeViewController()
            mail.mailComposeDelegate = self
            mail.setToRecipients(["abc@gmail.com"])
            mail.setMessageBody("<p>You're so awesome!</p>", isHTML: true)
           // mail.addAttachmentData(<#T##attachment: NSData##NSData#>, mimeType: <#T##String#>, fileName: <#T##String#>)
            presentViewController(mail, animated: true, completion: nil)
        } else {
            print("Error Received While sending mail")        }

    }

当我点击 MFMailComposeViewController() 的发送按钮发送邮件时,我在设备日志中收到如下错误:

>     1. <Error>: 18:32:54.282 [0x16e1bb000] >vibe> Error: Empty atoms array
>     2. ERROR:    [0x16e1bb000] 919: Vibe engine could not play vibe pattern, err = -50, actionID = 1001. Please file a bug.

问题出在组织的服务器防火墙上。它阻止服务器端口发送邮件。尝试使用蜂窝网络发送邮件,但成功了。