Skip to content
Snippets Groups Projects
Commit eaefcddf authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Check if EmailFrom is set when mails are enabled.

Refers to #28
parent fc30064a
No related branches found
No related tags found
No related merge requests found
......@@ -369,6 +369,11 @@ namespace ATxCommon.Serializables
////////// OPTIONAL PARAMETERS SETTINGS VALIDATION //////////
// EmailFrom
if (!string.IsNullOrWhiteSpace(c.SmtpHost) &&
string.IsNullOrWhiteSpace(c.EmailFrom))
errmsg += "<EmailFrom> must not be empty if <SmtpHost> is configured!\n";
// DriveName
foreach (var driveToCheck in c.SpaceMonitoring) {
errmsg += CheckLocalDrive(driveToCheck.DriveName, nameof(driveToCheck.DriveName));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment