Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michele Benolli 18 posts 126 karma points
    24 days ago
    Michele Benolli
    0

    FluentEmail configuration

    How can I correctly configure and use the FluentEmail library in Umbraco 8?

  • Alex Skrypnyk 6048 posts 23038 karma points MVP 5x admin c-trib
    15 days ago
    Alex Skrypnyk
    0

    Hi Michele

    Please, add this library to your solution and add the needed code to the sending code, nothing really complicated, what is the issue in your case?

    Thanks, Alex

  • Michele Benolli 18 posts 126 karma points
    15 days ago
    Michele Benolli
    0

    Hi Alex, thank you for the answer. Basically, I'm not able to register the FluentEmail service as in a normal .Net application, using the Microsoft.DependencyInjection.IServicecollection, using their extension method. In the official documentation (https://github.com/lukencode/FluentEmail):

    public void ConfigureServices(IServiceCollection services)
    {
    services
        .AddFluentEmail("[email protected]")
        .AddRazorRenderer()
        .AddSmtpSender("localhost", 25);
    }
    

    Umbraco has its own dependency injection classes and methods, and I just don't understand how to register the FluentEmail services.

Please Sign in or register to post replies

Write your reply to:

Draft