{"id":20500220,"url":"https://github.com/aronium/mailgun-wrapper","last_synced_at":"2026-04-16T21:04:06.933Z","repository":{"id":91944107,"uuid":"100892864","full_name":"aronium/mailgun-wrapper","owner":"aronium","description":"Mailgun wrapper written in C#","archived":false,"fork":false,"pushed_at":"2023-07-09T14:35:17.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T06:58:22.288Z","etag":null,"topics":["csharp","dotnet","email","mailgun","wrapper"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aronium.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-20T22:42:35.000Z","updated_at":"2022-07-03T10:16:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"456cb293-889a-48ce-89d8-5687285fbb81","html_url":"https://github.com/aronium/mailgun-wrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aronium%2Fmailgun-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aronium%2Fmailgun-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aronium%2Fmailgun-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aronium%2Fmailgun-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aronium","download_url":"https://codeload.github.com/aronium/mailgun-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242090873,"owners_count":20070244,"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","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":["csharp","dotnet","email","mailgun","wrapper"],"created_at":"2024-11-15T18:20:11.781Z","updated_at":"2026-04-16T21:04:01.845Z","avatar_url":"https://github.com/aronium.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aronium Mailgun Wrapper\n\nMailgun wrapper written in C#. \n\nWrapper is using [Builder pattern](https://en.wikipedia.org/wiki/Builder_pattern) for easy chaining and creating [Mailgun](https://www.mailgun.com/) requests.\n\n## Getting Started\n\nBefore you start, make sure you read Mailgun documentation at [Mailgun API Reference](https://documentation.mailgun.com/en/latest/api_reference.html)\n\n### Prerequisites\n\nProject is using .NET Framework 4.5\n\nThe following dependencies are managed using NuGet packages:\n\n* RestSharp\n* Newtonsoft.Json\n\n### Installing\n\nClone repo or download a ZIP file with source files and open *MailgunWrapper.sln* in Visual Studio. \n\nFirst project build will update NuGet dependencies automatically.\n\n## Usage examples\n\nBelow is the list of commonly used operations.\n\n### Sending email\n\n```csharp\n// Method will send a simple email to specified recipient\nvar request = MailgunResourceRequest.Builder\n                .ForSendMessage()\n                .From(\"Aronium \u003cme@aronium.com\u003e\")\n                .To(\"mail@example.com\")\n                .Subject(\"Hi\")\n                .Text(\"It is I, Leclerc!\")\n                .Build();\n\nvar response = new MailgunService().GetResponse\u003cMailgunSendEmailResponse\u003e(request);\n        \n```\n\n### Read events\n\n```csharp\n// Method will get all Unsubscribed and Failed (e.g. Bounced) events from day ago\nvar request = MailgunResourceRequest.Builder\n                .ForEvents(MailGunEventType.Unsubscribed | MailGunEventType.Failed)\n                .Begin(DateTime.Now.AddDays(-1))\n                .Limit(10)\n                .Build();\n\nvar response = new MailgunService().GetResponse\u003cMailgunEventCollection\u003e(request);        \n```\n\n### List all unsubscriptions\n```csharp\nvar request = MailgunResourceRequest.Builder\n                .ForUnsubscribes()\n                .Build();\n\nvar response = new MailgunService().GetResponse\u003cMailgunEmailAddressCollection\u003e(request);\n```\n\n### Check unsubscribe emails\n```csharp\nvar request = MailgunResourceRequest.Builder\n                .ForUnsubscribes(\"unsubsribed@example.com\")\n                .Build();\n\nvar response = new MailgunService().GetResponse\u003cMailgunEmailAddress\u003e(request);\n```\n\n## Authors\n\nSee the list of [contributors](https://github.com/aronium/mailgun-wrapper/graphs/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faronium%2Fmailgun-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faronium%2Fmailgun-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faronium%2Fmailgun-wrapper/lists"}