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 31 posts 149 karma points
    Sep 04, 2021 @ 07:28
    Michele Benolli
    0

    FluentEmail configuration

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

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Sep 13, 2021 @ 11:40
    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 31 posts 149 karma points
    Sep 13, 2021 @ 12:39
    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