{"id":26395645,"url":"https://github.com/elasticemail/elasticemail.webapiclient-csharp-core","last_synced_at":"2026-03-06T06:31:00.488Z","repository":{"id":84264733,"uuid":"90760713","full_name":"ElasticEmail/ElasticEmail.WebApiClient-csharp-core","owner":"ElasticEmail","description":"Easily send emails with Elastic Email using Web API C# Client https://elasticemail.com/","archived":false,"fork":false,"pushed_at":"2022-12-07T18:39:08.000Z","size":132,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-29T16:44:36.982Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","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/ElasticEmail.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-09T15:14:33.000Z","updated_at":"2024-06-21T20:31:07.864Z","dependencies_parsed_at":"2024-06-21T20:31:07.046Z","dependency_job_id":"06e469c6-f67b-4b39-a216-72a42255aa29","html_url":"https://github.com/ElasticEmail/ElasticEmail.WebApiClient-csharp-core","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/ElasticEmail%2FElasticEmail.WebApiClient-csharp-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElasticEmail%2FElasticEmail.WebApiClient-csharp-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElasticEmail%2FElasticEmail.WebApiClient-csharp-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElasticEmail%2FElasticEmail.WebApiClient-csharp-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElasticEmail","download_url":"https://codeload.github.com/ElasticEmail/ElasticEmail.WebApiClient-csharp-core/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244022684,"owners_count":20385134,"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":[],"created_at":"2025-03-17T11:18:52.897Z","updated_at":"2026-03-06T06:31:00.419Z","avatar_url":"https://github.com/ElasticEmail.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"**LEGACY**\n\nNew version of API - https://github.com/ElasticEmail/elasticemail-csharp\n\n**This library allows you to quickly and easily use the Elastic Email Web API v2 via C# with .NET Core.**\n\nVersion 1.X.X+ of this library provides full support for all Elastic Email Web API v2 endpoints.\n\nWe want this library to be community driven and Elastic Email led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/ElasticEmail/ElasticEmail.WebApiClient-csharp-core/issues) or simply upvote or comment on existing issues or pull requests.\n\nPlease browse the rest of this README for further detail.\n\nWe appreciate your continued support, thank you!\n\n# Table of Contents #\n* Installation\n* Quick Start\n* About\n\n# Installation #\n## Prerequisites ##\n* .NET Core version 1.6 or higher\n* [An Elastic Email account](https://elasticemail.com/account/)\n## Install Package ##\nTo use ElasticEmail in your C# project, you can either [download the ElasticEmail C# .NET libraries directly from our Github repository](https://github.com/ElasticEmail/ElasticEmail.WebApiClient-csharp-core) or, if you have the NuGet package manager installed, you can grab them automatically.\n\n```\nPM\u003e Install-Package ElasticEmail.WebApiClient\n```\n\nOnce you have the ElasticEmail.WebApiClient libraries properly referenced in your project, you can include calls to them in your code. \n\n# Quick Start #\n## Send Email ##\nThe following is the minimum needed code to send an simple email:\n\n```\nusing static ElasticEmailClient.Api;\nusing static ElasticEmailClient.ApiTypes;\n\nnamespace SendEmailExample\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            ApiKey = \"YOUR-API-KEY\";\n\n            var task = SendEmail(\"Hello World from Elastic Email!\", \"fromAddress@exmple.com\", \"John Tester\", new string[] { \"toAddress@exmple.com\" },\n                                \"\u003ch1\u003eHello! This mail was sent by Elastic Email service.\u003ch1\u003e\", \"Hello! This mail was sent by Elastic Email service.\");\n\n            task.ContinueWith(t =\u003e\n            {\n                if (t.Result == null)\n                    Console.WriteLine(\"Something went wrong. Check the logs.\");\n                else\n                {\n                    Console.WriteLine(\"MsgID to store locally: \" + t.Result.MessageID); // Available only if sent to a single recipient\n                    Console.WriteLine(\"TransactionID to store locally: \" + t.Result.TransactionID);\n                }\n            });\n\n            task.Wait();\n        }\n\n        public async static Task\u003cElasticEmailClient.ApiTypes.EmailSend\u003e SendEmail(string subject, string fromEmail, string fromName, string[] msgTo, string html, string text)\n        {\n            try\n            {\n                return await ElasticEmailClient.Api.Email.SendAsync(subject, fromEmail, fromName, msgTo: msgTo, bodyHtml: html, bodyText: text);\n            }\n            catch (Exception ex)\n            {\n                if (ex is ApplicationException)\n                    Console.WriteLine(\"Server didn't accept the request: \" + ex.Message);\n                else\n                    Console.WriteLine(\"Something unexpected happened: \" + ex.Message);\n\n                return null;\n            }\n        }\n    }\n}\n```\n## Load Account ##\nThis is a simple example on how to download your Account's information:\n```\nusing System.Threading.Tasks;\nusing static ElasticEmailClient.Api;\nusing static ElasticEmailClient.ApiTypes;\n\nnamespace LoadAccountExample\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            ApiKey = \"YOUR-API-KEY\";\n\n            var task = LoadAccount();\n\n            task.ContinueWith(t =\u003e\n            {\n                if (t.Result == null)\n                    Console.WriteLine(\"Something went wrong. Check the logs.\");\n                else\n                    Console.WriteLine(t.Result.PricePerEmail);\n            });\n\n            task.Wait();\n        }\n\n        public async static Task\u003cElasticEmailClient.ApiTypes.Account\u003e LoadAccount()\n        {\n            try\n            {\n                return await ElasticEmailClient.Api.Account.LoadAsync();\n            }\n            catch (Exception ex)\n            {\n                if (ex is ApplicationException)\n                    Console.WriteLine(\"Server didn't accept the request: \" + ex.Message);\n                else\n                    Console.WriteLine(\"Something unexpected happened: \" + ex.Message);\n\n                return null;\n            }\n        }\n    }\n}\n```\n# About #\nElasticEmail.WebApiClient-csharp-core is guided and supported by the ElasticEmail Dev Team.\n\nElasticEmail.WebApiClient-csharp-core is maintained and funded by Elastic Email Inc. The names and logos for ElasticEmail.WebApiClien-csharp are trademarks of Elastic Email Inc.\n\n![logo](https://elasticemail.com/files/ee_200x200.png )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felasticemail%2Felasticemail.webapiclient-csharp-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felasticemail%2Felasticemail.webapiclient-csharp-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felasticemail%2Felasticemail.webapiclient-csharp-core/lists"}