You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a business case for capturing the rendered email body. Is that possible with FluentEmail? I am using Razor templates if that makes any difference.
Activity
DavidDeSloovere commentedon Sep 9, 2022
You can create a decorator for the mail sender and check the content there.
I use Autofac to register the decorator.
builder.RegisterDecorator<CustomMailSender, ISender>();This is independent of the type of mail sender you are actually using (smtp, sendgrid...).
For more info, I would suggest stackoverflow or discussions here.