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

Make SMTP configuration elements optional.

parent 1e41897f
No related branches found
No related tags found
No related merge requests found
......@@ -62,12 +62,6 @@
<ProcessName>wordpad</ProcessName>
</BlacklistedProcesses>
<SmtpHost>smtp.mydomain.xy</SmtpHost>
<!--><SmtpHost /><-->
<SmtpPort>25</SmtpPort>
<SmtpUserCredential />
<SmtpPasswortCredential />
<!-- SendAdminNotification: send email to user on finished transfers -->
<SendTransferNotification>true</SendTransferNotification>
<EmailFrom>admin@mydomain.xy</EmailFrom>
......@@ -85,6 +79,15 @@
<!-- OPTIONAL CONFIGURATION SETTINGS -->
<!-- SmtpHost: SMTP server hostname -->
<SmtpHost>smtp.mydomain.xy</SmtpHost>
<!-- SmtpPort: SMTP server port, defaults to 25 if omitted -->
<SmtpPort>25</SmtpPort>
<!-- SmtpUserCredential: SMTP user name if authentication required -->
<SmtpUserCredential />
<!-- SmtpPasswortCredential: SMTP password if authentication required -->
<SmtpPasswortCredential />
<!-- EnforceInheritedACLs: whether to enforce ACL inheritance when moving
files and directories, see this page for details (DEFAULT: true)
https://support.microsoft.com/en-us/help/320246 -->
......
......@@ -14,8 +14,14 @@ namespace AutoTx.XmlWrapper
{
public ServiceConfig() {
// set values for the optional XML elements:
SmtpHost = "";
SmtpPort = 25;
SmtpUserCredential = "";
SmtpPasswortCredential = "";
EnforceInheritedACLs = true;
}
#region required configuration parameters
/// <summary>
/// A human friendly name for the host, to be used in emails etc.
......@@ -59,9 +65,7 @@ namespace AutoTx.XmlWrapper
/// to keep the temporary data of running transfers.
/// </summary>
public string TmpTransferDir { get; set; }
public string SmtpHost { get; set; }
public string SmtpUserCredential { get; set; }
public string SmtpPasswortCredential { get; set; }
public string EmailFrom { get; set; }
public string AdminEmailAdress { get; set; }
public string AdminDebugEmailAdress { get; set; }
......@@ -71,7 +75,6 @@ namespace AutoTx.XmlWrapper
public int InterPacketGap { get; set; }
public int MaxCpuUsage { get; set; }
public int MinAvailableMemory { get; set; }
public int SmtpPort { get; set; }
public int AdminNotificationDelta { get; set; }
public int StorageNotificationDelta { get; set; }
......@@ -93,10 +96,16 @@ namespace AutoTx.XmlWrapper
[XmlArrayItem(ElementName = "ProcessName")]
public List<string> BlacklistedProcesses { get; set; }
#endregion
#region optional configuration parameters
public string SmtpHost { get; set; }
public string SmtpUserCredential { get; set; }
public string SmtpPasswortCredential { get; set; }
public int SmtpPort { get; set; }
/// <summary>
/// EnforceInheritedACLs: whether to enforce ACL inheritance when moving files and
/// directories, see https://support.microsoft.com/en-us/help/320246 for more details.
......
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