Latest 1.0.0
Homepage https://github.com/KevinAo22/Mailgun-In-Swift
License MIT
Platforms ios 11.0, requires ARC
Dependencies ObjectMapper, Alamofire
Authors

CocoaPods GitHub License Swift 4

Mailgun-In-Swift provides simple alternative APIs when you need to send an email with your iOS app using Mailgun.

question: Why?

For developing iOS App, we need to send a email in background without any action sometimes. Or there is the need to send a simple email instead of using MailComposeViewController or SMTP libray. In these cases, sending emails using Mailgun is a better option. This project help you simplify the original Mailgun APIs and provide you a simple alternative in Swift.

email: Mailgun

Mailgun provides a simple reliable API for transactional emails. You will need to have an ApiKey and an account to use the client.

octocat: Installation

Get Mailgun-In-Swift on CocoaPods, just add pod 'Mailgun-In-Swift' to your Podfile.

mortar_board: Usage

Usage is very simple


import Mailgun-In-Swift

let mailgun = MailgunAPI(apiKey: "YouAPIKey", clientDomain: "yourDomain.com")

mailgun.sendEmail(to: "[email protected]", from: "Test User <[email protected]>", subject: "This is a test", bodyHTML: "<b>test<b>") { mailgunResult in

  if mailgunResult.success{
    print("Email was sent")
  }

}

:v: License

MIT

alien: Author

Ao Zhang – https://kevinao.com

Latest podspec

{
    "name": "Mailgun-In-Swift",
    "version": "1.0.0",
    "summary": "Simple api for using Mailgun in Swift",
    "description": "Mailgun-In-Swift provides simple alternative api when you need to send an email with your iOS app using MailGun.",
    "homepage": "https://github.com/KevinAo22/Mailgun-In-Swift",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ao Zhang": "[email protected]"
    },
    "platforms": {
        "ios": "11.0"
    },
    "source": {
        "git": "https://github.com/KevinAo22/Mailgun-In-Swift.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "Mailgun-In-Swift/",
        "Mailgun-In-Swift/**/*.{h,m,swift}"
    ],
    "requires_arc": true,
    "dependencies": {
        "ObjectMapper": [],
        "Alamofire": []
    }
}

Pin It on Pinterest

Share This