iOS-MailClients
Mail Client Service - Connecting your consumers to more than just Mail
This Pod allows you to connect to more than one mail client with ease. Presenting a UIAlertController
with multiple options based on what client is installed.
Currently Available Clients
- Gmail
- Inbox
- Outlook
- Spark
- Newton
- Airmail
Requirements
- iOS 10.0+
Installation
CocoaPods
You can use CocoaPods to install iOSMailClients
by adding it to your Podfile
:
platform :ios, '10.0'
use_frameworks!
pod 'iOSMailClients'
To get the full benefits import iOSMailClients
wherever you import UIKit
import UIKit
import iOSMailClients
Usage example
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]")
Plist Requirements
You will need to add this snippet to your project plist to enable the URL Schemes for the available clients
<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
We would love you for the contribution to iOSMailClients, check the LICENSE
file for more info.
Meta
Rich Mucha – @RichAppz – [email protected]
Distributed under the Apache License 2.0. See LICENSE
for more information.
Copyright 2018 Rich Mucha, RichAppz Limited
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.