0 votes
by (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
by (147k points)
selected by
 
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.

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