Latest1.2
Homepagehttps://github.com/vtourraine/ThirdPartyMailer
LicenseMIT
Platformsios 8.0, requires ARC
FrameworksUIKit
Authors

Interact with third-party iOS mail clients, using custom URL schemes.

Platform iOS
Build Status
CocoaPods compatible
MIT license

Supported mail clients

ClientURL SchemeApp Store
Sparrowsparrowdiscontinued
Gmailgooglegmaillink
Dispatchx-dispatchlink
Sparkreaddle-sparklink
Airmailairmaillink
Microsoft Outlookms-outlooklink
Yahoo Mailymaillink

Unfortunately, not all mail clients offer URL schemes to be supported by ThirdPartyMailer. If you’re aware of another candidate, please let us know.

How to install

With CocoaPods, simply add ThirdPartyMailer to your Podfile:

pod 'ThirdPartyMailer'

Or, you can manually import the files from the Source folder.

How to use

Getting the list of available clients:

let clients = ThirdPartyMailClient.clients()

Testing the client availability (i.e. is the app installed):

let application = UIApplication.shared

if ThirdPartyMailer.application(application, isMailClientAvailable: client) {
    // ...
}

Opening the client (with optional message recipient, subject, and body):

let application = UIApplication.shared

ThirdPartyMailer.application(application, openMailClient: client, recipient: nil, subject: nil, body: nil)

Requirements

ThirdPartyMailer is written in Swift 3.2, requires iOS 8.0 and above, Xcode 8.0 and above.

Credits

ThirdPartyMailer was created by Vincent Tourraine.

License

ThirdPartyMailer is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ThirdPartyMailer",
    "version": "1.2",
    "summary": "Interact with third-party iOS mail clients, using custom URL schemes.",
    "homepage": "https://github.com/vtourraine/ThirdPartyMailer",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Vincent Tourraine": "[email protected]"
    },
    "social_media_url": "http://twitter.com/vtourraine",
    "source": {
        "git": "https://github.com/vtourraine/ThirdPartyMailer.git",
        "tag": "1.2"
    },
    "source_files": "Source/*.swift",
    "platforms": {
        "ios": "8.0"
    },
    "frameworks": "UIKit",
    "requires_arc": true,
    "swift_version": "3.2"
}

Pin It on Pinterest

Share This