Skip to content

Redesign configuration method #123

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

Merged
merged 7 commits into from
Jan 4, 2024
Merged

Conversation

nblumhardt
Copy link
Member

WriteTo.Email() needs a refresh, after many years of incremental additions.

This PR renames and reorganizes the configuration options to bring them up to a reasonable standard.

Parameter Description
from The email address emails will be sent from.
to The email address emails will be sent to. Multiple addresses can be separated with commas or semicolons.
host The SMTP server to use.
port The port used for the SMTP connection. The default is 25.
connectionSecurity Choose the security applied to the SMTP connection. This enumeration type is supplied by MailKit. The default is Auto.
credentials The network credentials to use to authenticate with the mail server.
subject A message template describing the email subject. The default is "Log Messages".
body A message template describing the format of the email body. The default is "{Timestamp} [{Level}] {Message}{NewLine}{Exception}".
formatProvider Supplies culture-specific formatting information. The default is to use the current culture.

nblumhardt and others added 2 commits January 3, 2024 08:52
@nblumhardt
Copy link
Member Author

Liking the net462;netstandard2.0;net6.0 TFM combo 👍

@nblumhardt nblumhardt merged commit 568ac7f into serilog:dev Jan 4, 2024
@nblumhardt nblumhardt mentioned this pull request Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants