Skip to content

Commit

Permalink
what?
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Mar 16, 2024
1 parent 54f25c8 commit d2cc2f2
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ public static class EmailQuotaManagementExtensions
{
public static void SetEmailQuotaManagementOptionsForUITest(
this OrchardCoreUITestExecutorConfiguration configuration,
long maximumEmails)
long maximumEmails,
string emailHost = "localhost")
{
configuration.OrchardCoreConfiguration.BeforeAppStart +=
(_, argumentsBuilder) =>
Expand All @@ -17,9 +18,14 @@ public static void SetEmailQuotaManagementOptionsForUITest(
"OrchardCore:Lombiq_Hosting_Tenants_EmailQuotaManagement:EmailQuotaPerMonth",
maximumEmails);

argumentsBuilder
.AddWithValue(
"OrchardCore:SmtpSettings:Host",
emailHost);

return Task.CompletedTask;
};

configuration.UseSmtpService = true;
}
}
}

0 comments on commit d2cc2f2

Please sign in to comment.