.Net Core Rebex Secure Mail implement IEMail Sender

0 votes
asked Oct 4 by mwgevans (250 points)

I am trying to use rebex email to send identity confirmation emails in ASP.NET Core MVC (2.1) unfortunately the async code examples I have found don't seem to work in .Net core. The class I have is below - can you give some pointers?

    public class EmailSender : IEmailSender
{
    public Task SendEmailAsync(string emailTo, string subject, string htmlMessage)
    {
        throw new NotImplementedException();
    }
}
Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Oct 5 by Lukas Pokorny (94,670 points)
selected Oct 5 by mwgevans
 
Best answer

Would it be possible to provide a minimal, complete, and verifiable example that demonstrates the issue?

Alternatively, would it be possible to specify how you call Rebex API and how exactly it fails? If you get an exception, please send the result of Exception's ToString() method - this should make it possible to tell what is going on.

commented Oct 5 by mwgevans (250 points)
Found the error in my code - I just thought someone might have a better example of how to implement IEmailSender for me :)
...