Method SetMailOptions
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
SetMailOptions(EmailOptions)
Sets the mail options.
public void SetMailOptions(EmailOptions mailOptions)
Parameters
mailOptions
EmailOptionsThe mail options.
Examples
MailReportOptions reportOptions = engine.PrepareMailReport("myTemplate");
string title = "Load Overview";
string message = "Information about last day's load";
EmailOptions emailOptions = new EmailOptions();
emailOptions.Title = title;
emailOptions.Message = message;
emailOptions.TO = "user.demuynck@domain.com";
emailOptions.SendAsPlainText = true;
reportOptions.SetMailOptions(emailOptions);
SetMailOptions(string, string, string)
Sets the mail options.
public void SetMailOptions(string message, string title, string to)
Parameters
Examples
MailReportOptions reportOptions = engine.PrepareMailReport("myTemplate");
string title = "Load Overview";
string message = "Information about last day's load";
string to = "user@domain.com";
reportOptions.SetMailOptions(message, title, to);