Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BatchingOptions not working #144

Open
dvRox84 opened this issue Jan 21, 2025 · 0 comments
Open

BatchingOptions not working #144

dvRox84 opened this issue Jan 21, 2025 · 0 comments

Comments

@dvRox84
Copy link

dvRox84 commented Jan 21, 2025

Package version 4.0.0

This is a piece of my appsettings.json:

"WriteTo": [
{
"Name": "Email",
"Args": {
"options": {
"from": "[email protected]",
"to": [ "[email protected]" ],
"host": "myhiddensmpturi",
"port": 25,
"subject": "oops",
"connectionSecurity": "None"
},
"batchingOptions": {
"batchSizeLimit": 10,
"period": "00:05:00"
},
"restrictedToMinimumLevel": "Warning"
}
},
..

I'm trying to limit number of mail sent but batching options seems not to work.
When I run my app creating severeal errors, I receive 1 mail for each error.
I cannot understand how to properly configure my appsettings in order to get it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant