{"id":32318609,"url":"https://github.com/pixel16/swiftmandrill","last_synced_at":"2026-02-23T19:33:32.605Z","repository":{"id":62456578,"uuid":"49906438","full_name":"PiXeL16/SwiftMandrill","owner":"PiXeL16","description":"SwiftMandrill provides simple alternative when you need to send an email with your iOS app.","archived":false,"fork":false,"pushed_at":"2017-08-20T15:22:32.000Z","size":53,"stargazers_count":11,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-16T01:15:32.047Z","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-01-18T21:27:22.000Z","updated_at":"2023-01-20T13:17:31.000Z","dependencies_parsed_at":"2022-11-01T23:46:28.508Z","dependency_job_id":null,"html_url":"https://github.com/PiXeL16/SwiftMandrill","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/PiXeL16/SwiftMandrill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiXeL16%2FSwiftMandrill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiXeL16%2FSwiftMandrill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiXeL16%2FSwiftMandrill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiXeL16%2FSwiftMandrill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PiXeL16","download_url":"https://codeload.github.com/PiXeL16/SwiftMandrill/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiXeL16%2FSwiftMandrill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280610190,"owners_count":26360199,"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-23T11:31:16.636Z","updated_at":"2025-10-23T11:32:42.738Z","avatar_url":"https://github.com/PiXeL16.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftMandrill [![Build Status](https://travis-ci.org/PiXeL16/SwiftMandrill.svg?branch=master)](https://travis-ci.org/PiXeL16/SwiftMandrill/) [![codecov.io](https://codecov.io/github/PiXeL16/SwiftMandrill/coverage.svg?branch=master)](https://codecov.io/github/PiXeL16/SwiftMandrill?branch=master) [![CocoaPods Compatible](https://img.shields.io/cocoapods/v/SwiftMandrill.svg)](https://img.shields.io/cocoapods/v/SwiftMandrill.svg) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/PiXeL16/SwiftMandrill/master/LICENSE)\nSwiftMandrill provides simple alternative when you need to send an email with your iOS app.\n:question: Why?\n----\nSometimes, there is the need to setup a simple email form in your iOS app, or 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:monkey: Mandrill\n----\n[Mandrill](https://www.mandrill.com/) provides a simple  reliable API for transactional emails. You will need to have a `Mandrill` account to use the client and a `API` key.\n\n:octocat: Installation\n----\nGet `SwiftMandrill` on CocoaPods, just add `pod 'SwiftMandrill'` to your Podfile.\n\n:mortar_board: Usage\n-----\nUsage is very simple\n\n```swift\nlet api = MandrillAPI(ApiKey: \"YourApiKey\")\n\napi.sendEmail(from:    \"from@test.com\",\n              fromName:\"Chris Jimenez\",\n              to:      \"to@test.com\",\n              subject: \"My subject\",\n              html:    \"\u003cb\u003eThis is a Test\u003c/b\u003e\",\n              text:    \"This is a test\"){ mandrillResult in\n    if mandrillResult.success {\n      print(\"Email was sent!\")\n    }\n}\n```\n\nYou can also send an email to several recipients by passing an array\n\n```swift\nlet api = MandrillAPI(ApiKey: \"YourApiKey\")\n\napi.sendEmail(from:    \"from@test.com\",\n              fromName:\"Chris Jimenez\",\n              to:      [\"to@test.com\",\"to@test2.com\"],\n              subject: \"My subject\",\n              html:    \"\u003cb\u003eThis is a Test\u003c/b\u003e\",\n              text:    \"This is a test\"){ mandrillResult in\n    if mandrillResult.success {\n      print(\"Email was sent!\")\n    }\n}\n```\n\nIf inline parameters is not your thing you can also provide a `MandrillEmail` object and send that one\n\n```swift\nlet api = MandrillAPI(ApiKey: \"YourApiKey\")\n\nlet email     = MandrillEmail()\nemail.from    = \"test@test.com\"\nemail.fromName= \"Chris Jimenez\"\nemail.to      = \"totest@gmail.com\"\nemail.subject = \"this is a test\"\nemail.html    = \"\u003cb\u003e\u003cTest/b\u003e\"\nemail.text    = \"Test\"   \n\n api.sendEmail(withEmail: email){ mandrillResult in\n    if mandrillResult.success {\n      print(\"Email was sent!\"\")\n    }\n}\n```\n\n:wrench: TODO\n-----\n* Most of the API is still not cover, stuff like tracking, templates, search, etc will be a nice addition.\n\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixel16%2Fswiftmandrill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixel16%2Fswiftmandrill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixel16%2Fswiftmandrill/lists"}