Skip to content

BatchingOptions not working #144

@dvRox84

Description

@dvRox84

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions