Jumprock
示例
要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install
。
用法
创建表单
let form = JumprockForm(subject: "Hello, world!", message: "Some message.",
phone: "2125551234", name: "John Doe",
replyToAddress: "[email protected]",
redirectURLString: nil, cc: ["[email protected]", "[email protected]"], bcc: nil)
发送表单
Jumprock.send(form, fromAlias: "ALIAS") { (error) in
if let error = error {
debugPrint("Did not send email:", error)
}
else {
debugPrint("Sent email!")
}
}
安装
Jumprock 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod 'Jumprock'
作者
Ryan Cohen, [邮箱地址保护中]
许可
Jumprock适用于MIT许可。有关更多信息,请参阅LICENSE文件。