Latest 1.0.0
License MIT
Platforms ios 11.0, requires ARC
Dependencies ObjectMapper, Alamofire

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: "")

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


alien: Author

Ao Zhang –

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": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Ao Zhang": "[email protected]"
    "platforms": {
        "ios": "11.0"
    "source": {
        "git": "",
        "tag": "1.0.0"
    "source_files": [
    "requires_arc": true,
    "dependencies": {
        "ObjectMapper": [],
        "Alamofire": []

Pin It on Pinterest

Share This