bringking / mailgun_csharp Goto Github PK
View Code? Open in Web Editor NEWA Mailgun api library for C#
License: MIT License
A Mailgun api library for C#
License: MIT License
According to usage described in readme file, the usage of:
MailgunMessageServiceOptions mailOptions = new MailgunMessageServiceOptions
{
Domain = ConfigurationManager.AppSettings["EmailDomain"],
ApiKey = ConfigurationManager.AppSettings["EmailSecretKey"],
TestMode = Convert.ToBoolean(ConfigurationManager.AppSettings["EmailTestMode"]),
DefaultFrom = new Recipient() { DisplayName = ConfigurationManager.AppSettings["EmailFromDisplayName"], Email = ConfigurationManager.AppSettings["EmailFromAddress"] }
};
manager.EmailService = new MailgunMessageService(mailOptions);
Is throwing next error:
Method not found: 'Void Mailgun.Service.MessageService..ctor(System.String, Boolean, System.String)'.
[MissingMethodException: Method not found: 'Void Mailgun.Service.MessageService..ctor(System.String, Boolean, System.String)'.]
Mailgun.AspNet.Identity.MailgunMessageService..ctor(IMailgunMessageServiceOptions options) +0
Transforce.Web.ApplicationUserManager.Create(IdentityFactoryOptions1 options, IOwinContext context) in D:\vaincRepos\GitHub\transforce\src\Transforce.Web\App_Start\IdentityConfig.cs:188 Microsoft.AspNet.Identity.Owin.IdentityFactoryProvider
1.Create(IdentityFactoryOptions`1 options, IOwinContext context) +38
Microsoft.AspNet.Identity.Owin.d__0.MoveNext() +120
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
System.Runtime.CompilerServices.TaskAwaiter.GetResult() +26
Microsoft.AspNet.Identity.Owin.d__0.MoveNext() +417
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
System.Runtime.CompilerServices.TaskAwaiter.GetResult() +26
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.d__5.MoveNext() +170
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
System.Runtime.CompilerServices.TaskAwaiter.GetResult() +26
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.d__2.MoveNext() +166
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +26
Microsoft.Owin.Host.SystemWeb.Infrastructure.ErrorState.Rethrow() +26
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.StageAsyncResult.End(IAsyncResult ar) +81
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.EndFinalWork(IAsyncResult ar) +30
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +380
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
See subject.
This is not a sane default, because you literally always should have it enabled if you can, and Mailgun can't be set up w/o DKIM keys in DNS.
I used it for two years w/o realizing :-)
Any plan for the project to be .Net Standard 2.0 and for an official Nuget package?
Is this project still needing a maintainer? I am willing to take over this project due to my need to have for a robust .Net Mailgun library.
Hi. I'm using Mailgun a lot. I would like to port library to .net core and update with issues.
And update to NuGet
I'm from Saint-Petersburg also.
Hi
I'm trying to get a simple example working, basically copying the code from your readme file. But I get 404 responses back.
When I look at the response object, I can see that it tries to access this URL:
http://api.mailgun.net/v2/sandbox84ad848982dd4091b90a6aa05701b901.mailgun.org/messages
And when I'm inside Mailgun´s application, it suggests using the v3 API. I don't know if thats the issue maybe. If so, is there any way I can specify the API version (or maybe something like a base URL) for the MessageService?
Cheers
Are you still looking for a maintainer?
I was considering starting up my own repo (and probably still will), but it would seem that with Mailgun's web service API and RestSharp, it's almost difficult to justify having a community-supported library. The repo I'll be building, however. will actually be used for a class I teach.
Either way, let me know.
From mailgun support:
we recently made a change that would cause our API to no longer accept messages where the email address does not comply with RFC guidelines. ... We've rolled this back so the "should not work" should actually continue to work. However, we urge that you comply with the RFC guidelines above, as we will eventually be moving forward to comply with them as well.
I'll submit patch this week with full changes, as my fix seems not enough, so you could just assign this issue to me
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.