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:
@@ -33,6 +33,31 @@
|
||||
"FailOpenAfterMinutes": 5,
|
||||
"HttpTimeoutSeconds": 5
|
||||
},
|
||||
// Mail (invitations, password reset, notices). Mail is OFF while Email:Smtp:Host is empty and every
|
||||
// flow then works as before (copy the link). Enable per environment with environment variables:
|
||||
// Email__Smtp__Host, Email__Smtp__Port, Email__Smtp__EnableSsl, Email__Smtp__Username,
|
||||
// Email__Smtp__Password (secrets only there, never in this file) and App__PublicBaseUrl.
|
||||
// Extra sender addresses a site may choose in its settings go in Email:AllowedFromAddresses.
|
||||
"Email": {
|
||||
"FromAddress": "no-reply@slpsoftware.nl",
|
||||
"FromName": "SLP Software",
|
||||
"AllowedFromAddresses": [],
|
||||
"LogoUrl": "",
|
||||
"BrandColor": "",
|
||||
"Smtp": {
|
||||
"Host": "",
|
||||
"Port": 587,
|
||||
"EnableSsl": true,
|
||||
"Username": "",
|
||||
"Password": "",
|
||||
"TimeoutSeconds": 10
|
||||
}
|
||||
},
|
||||
"App": {
|
||||
// Public https address of this site, used for links in mails, e.g. https://test.andreaslop.nl
|
||||
"PublicBaseUrl": "",
|
||||
"DefaultLanguage": "nl"
|
||||
},
|
||||
"Cors": {
|
||||
"AllowedOrigins": []
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user