Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 2.16 KB

File metadata and controls

44 lines (30 loc) · 2.16 KB

Lombiq Hosting - Tenants Email Quota Management for Orchard Core

Lombiq.Hosting.Tenants.EmailQuotaManagement NuGet

About

With the help of this module, you can set restrictions regarding maximum email sent per tenant per month, if they are using the same SMTP server host as the predefined one from the environment variables or from the appsettings.json file.

Do you want to quickly try out this project and see it in action? Check it out in our Open-Source Orchard Core Extensions full Orchard Core solution and also see our other useful Orchard Core-related open-source projects!

Documentation

This module currently contains one feature:

  • Lombiq.Hosting.Tenants.EmailQuotaManagement

Lombiq.Hosting.Tenants.EmailQuotaManagement

With this module, you can specify how much space would you like to limit each tenant's maximum email quota. The default is 1000 per month. You can change this value in the appsettings.json file or with an environment variable. When the quota is reached the email won't be sent and also the following will happen:

  • An email will be sent to the tenant's users who has Site Owner permission.
  • A warning message will be shown that the limit has been reached on the admin dashboard.

Also a warning message is always shown with the current email quota status on the email settings page when the same host is used as the predefined one from the environment variables or from the appsettings.json file.

"OrchardCore": {
  "Lombiq_Hosting_Tenants_EmailQuotaManagement": {
    "EmailQuotaPerMonth": 42069
  }
}

Tenant based configuration can be defined as the following, for more details read the Orchard Core documentation.

"OrchardCore": {
  "TenantName": {
    "Lombiq_Hosting_Tenants_EmailQuotaManagement": {
      "EmailQuotaPerMonth": 42069
    }
  }
}