mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
markdown mail service when self hosted
This commit is contained in:
@ -54,7 +54,15 @@ namespace Bit.Core.Utilities
|
||||
|
||||
public static void AddDefaultServices(this IServiceCollection services, GlobalSettings globalSettings)
|
||||
{
|
||||
services.AddSingleton<IMailService, RazorViewMailService>();
|
||||
if(globalSettings.SelfHosted)
|
||||
{
|
||||
services.AddSingleton<IMailService, MarkdownMailService>();
|
||||
}
|
||||
else
|
||||
{
|
||||
services.AddSingleton<IMailService, RazorMailService>();
|
||||
}
|
||||
|
||||
services.AddSingleton<ILicensingService, RsaLicensingService>();
|
||||
|
||||
if(CoreHelpers.SettingHasValue(globalSettings.Mail.SendGridApiKey))
|
||||
|
Reference in New Issue
Block a user