iOSMailClients 0.2.0

iOSMailClients 0.2.0

RichAppz Ltd维护。



  • RichMucha/RichAppz

iOS-MailClients

邮件客户端服务 - 将您的消费者与邮件之外的服务相连

Swift Version PRs Welcome

此Pod允许您轻松地连接多个邮件客户端。根据已安装的客户端,展示多个选项的`UIAlertController`。

当前可用客户端

  • 邮件
  • Gmail
  • Inbox
  • Outlook
  • Spark
  • Newton
  • Airmail

要求

  • iOS 10.0+

安装

CocoaPods

您可以使用 CocoaPods 通过将 iOSMailClients 添加到您的 Podfile 中来安装它

platform :ios, '10.0'
use_frameworks!
pod 'iOSMailClients'

要获得完整的好处,请在导入 UIKit 的任何地方导入 iOSMailClients

import UIKit
import iOSMailClients

使用案例

import iOSMailClients

/// To allow the service to just open the client
MailService.request(fromVC: self)

/// To allow the service to compose an email - (mailto is a requirement)
MailService.request(fromVC: self, subject: "Test Subject", body: "Test Body", mailto: "[email protected]")

alt text

Plist Requirements

您需要在项目中添加此片段以启用可用客户端的 URL 模式

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>googlegmail</string>
    <string>cloudmagic</string>
    <string>inbox-gmail</string>
    <string>ms-outlook</string>
    <string>readdle-spark</string>
    <string>airmail</string>
</array>

Contribute

我们非常欢迎您对 iOSMailClients 的贡献,请查看 LICENSE 文件以获取更多信息。

Meta

Rich Mucha – @RichAppz[email protected]

依 Apache License 2.0 许可证发行。有关更多信息,请参阅 LICENSE 文件。

https://github.com/richappz/

版权所有 2018 Rich Mucha, RichAppz Limited

依据 Apache License 版本 2.0(“许可证”)许可;除非符合许可证规定或书面同意,否则不得使用此文件。您可以在以下位置获得许可证副本:

https://apache.ac.cn/licenses/LICENSE-2.0

除非适用法律要求或书面同意,否则在该许可证下分发的软件按“现状”基础分发,不提供任何明示或暗示的保证或条件。有关许可证的具体语言、权限和限制,请参阅许可证。