使用Swift和Xcode发送自动电子邮件6 [英] Sending an automatic Email with Swift and Xcode 6
本文介绍了使用Swift和Xcode发送自动电子邮件6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 swift ios应用程序中发送自动电子邮件?我不想使用MessageUI,因为它不是自动的。你怎么可以这样做?
How would you send an automatic email in a swift ios app? I don't want to use MessageUI because it is not automatic. How could you do this?
推荐答案
如果你想以编程方式发送电子邮件,我会使用 MailCore ,可以使用SMTP / IMAP协议。它也适用于OSX和iOS!以下是Swift中的一个很棒的SMTP示例:
以Swift发送Mailcore2普通电子邮件
If you're looking to programmatically send emails, I would use MailCore to do this, which can use the SMTP/IMAP protocols. It works on both OSX and iOS too! Here is a great SMTP example in Swift: Sending Mailcore2 Plain Emails in Swift
这篇关于使用Swift和Xcode发送自动电子邮件6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文