{"id":32312633,"url":"https://github.com/pixel16/swiftmailgun","last_synced_at":"2025-10-23T09:58:20.734Z","repository":{"id":62456582,"uuid":"52931129","full_name":"PiXeL16/SwiftMailgun","owner":"PiXeL16","description":"SwiftMailgun provides simple alternative when you need to send an email with your iOS app using MailGun","archived":false,"fork":false,"pushed_at":"2017-10-23T13:38:24.000Z","size":42,"stargazers_count":21,"open_issues_count":3,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-23T09:58:04.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PiXeL16.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-02T03:40:14.000Z","updated_at":"2022-03-26T03:47:53.000Z","dependencies_parsed_at":"2022-11-02T00:17:49.270Z","dependency_job_id":null,"html_url":"https://github.com/PiXeL16/SwiftMailgun","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/PiXeL16/SwiftMailgun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiXeL16%2FSwiftMailgun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiXeL16%2FSwiftMailgun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiXeL16%2FSwiftMailgun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiXeL16%2FSwiftMailgun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PiXeL16","download_url":"https://codeload.github.com/PiXeL16/SwiftMailgun/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiXeL16%2FSwiftMailgun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280598942,"owners_count":26357977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-23T09:58:16.500Z","updated_at":"2025-10-23T09:58:20.725Z","avatar_url":"https://github.com/PiXeL16.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftMailgun\n[![Cocoapods Compatible](https://img.shields.io/cocoapods/v/SwiftMailgun.svg)](https://img.shields.io/cocoapods/v/SwiftMailgun.svg) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/PiXeL16/SwiftMailgun/master/LICENSE)\n[![Swift 3](https://img.shields.io/badge/language-Swift%203.0-orange.svg)](https://swift.org)\n\nSwiftMailgun provides simple alternative when you need to send an email with your iOS app using MailGun.\n\n:question: Why?\n----\nSometimes, there is the need to setup a simple email form in your iOS app, or to trigger an email after an action without having to setup your own service for that, sometimes you don't want to use the `MailComposeViewController` or use a `SMTP` library.\nThis provide a simple alternative when you need to send an email with your iOS app.\n\n:email: Mailgun\n----\n[Mailgun](https://mailgun.com) provides a simple reliable API for transactional emails. You will need to have an `ApiKey` and an account to use the client.\n\n:octocat: Installation\n----\nGet `SwiftMailgun` on CocoaPods, just add `pod 'SwiftMailgun'` to your Podfile.\n\n:mortar_board: Usage\n-----\nUsage is very simple\n\n```swift\n\nimport SwiftMailgun\n\nlet mailgun = MailgunAPI(apiKey: \"YouAPIKey\", clientDomain: \"yourDomain.com\")\n\nmailgun.sendEmail(to: \"to@test.com\", from: \"Test User \u003ctest@test.com\u003e\", subject: \"This is a test\", bodyHTML: \"\u003cb\u003etest\u003cb\u003e\") { mailgunResult in\n\n  if mailgunResult.success{\n    print(\"Email was sent\")\n  }\n\n}\n\n```\n\n:wrench: TODO\n-----\n* Multiple recipients\n* Add attachments\n* Add other API settings like tracking, tags, etc\n* Carthage support\n\n:v: License\n-------\nMIT\n\n:alien: Author\n------\nChris Jimenez - http://chrisjimenez.net, [@chrisjimeneznat](http://twitter.com/chrisjimeneznat)\n\n:beer: Donate\n------\nIf you want to buy me a beer, you can donate to my coin addresses below:\n#### BTC\n1BeGBew4CBdLgUSmvoyiU1LrM99GpkXgkj\n#### ETH\n0xa59a3793E3Cb5f3B1AdE6887783D225EDf67192d\n#### LTC\nLd6FB3Tqjf6B8iz9Gn9sMr7BnowAjSUXaV\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixel16%2Fswiftmailgun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixel16%2Fswiftmailgun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixel16%2Fswiftmailgun/lists"}