U1 mail-foundation (backend): verzender, opties, sjabloon, SiteSettings met toegestane afzenderlijst
IEmailSender met MailKit-implementatie (StartTls, timeout, fouten als waarde), opties met startvalidatie, nl/en sjabloon, taalkeuze, tabel SiteSettings (additieve migratie), SiteSettings-API (Beheerder leest, Eigenaar wijzigt) en emailEnabled/defaultLanguage in de capabilities. Zonder SMTP-host verandert er niets. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -74,4 +74,16 @@ public class HostConfigurationTests
|
||||
referenced.Should().NotContain("SlpModularCms.Modules.Offerings")
|
||||
.And.NotContain("SlpModularCms.Modules.Master");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Mail_IsOffByDefault_AndNoCredentialIsCommitted()
|
||||
{
|
||||
var config = Load();
|
||||
|
||||
config["Email:Smtp:Host"].Should().BeNullOrEmpty("mail is switched on per environment");
|
||||
config["Email:Smtp:Username"].Should().BeNullOrEmpty();
|
||||
config["Email:Smtp:Password"].Should().BeNullOrEmpty();
|
||||
config["Email:FromAddress"].Should().NotBeNullOrEmpty();
|
||||
config["Email:LogoUrl"].Should().Be("/admin/brand-logo-on-light.png");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user