namespace Bitworking{
/// <summary>
/// Configuration information for the component.
/// </summary>
public class SmtpConfigInfo {
/// <summary>
/// Whether the mailer is enabled. If false,
/// no mail is sent.
/// </summary>
[XmlBoolSerialize("//AggieConfig/Mailer/Enabled", false)]
public bool enableMailer;
/// <summary>
/// Whether the mailer operates in offline mode.
/// In this mode, mailer does everything as in
/// operational mode, except creating a TCP connection
/// to the host and exchanging information with it.
/// </summary>
[XmlBoolSerialize("//AggieConfig/Mailer/Offline", false)]
public bool offline;
/// <summary>
/// SMTP host name to use for sending mail.
/// </summary>
[XmlStringSerialize("//AggieConfig/Mailer/Host", "")]
public string host;
/// <summary>
/// SMTP port number to use for sending mail (usually 25).
/// </summary>
[XmlIntSerialize("//AggieConfig/Mailer/Port", 25)]
public int port;
/// <summary>
/// Account name to send mail from.
/// </summary>
[XmlStringSerialize("//AggieConfig/Mailer/SenderAccount", "")]
public string sendingAccount;
/// <summary>
/// Account name to send mail to.
/// </summary>
[XmlStringSerialize("//AggieConfig/Mailer/ReceiverAccount", "")]
public string receivingAccount;
/// <summary>
/// Username to use for authentication.
/// </summary>
[XmlStringSerialize("//AggieConfig/Mailer/Username", "")]
public string username;
/// <summary>
/// Password to use for authentication.
/// </summary>
[XmlStringSerialize("//AggieConfig/Mailer/Password", "")]
public string password;
/// <summary>
/// Whether process items in reverse order
/// </summary>
[XmlBoolSerialize("//AggieConfig/Mailer/ReverseItems", false)]
public bool reversItems;
/// <summary>
/// How to group a channel's items in mail messages.
/// 0-Each item in its own message. 1-All items in
/// a single message. 2-Items grouped by title.
/// </summary>
[XmlIntSerialize("//AggieConfig/Mailer/HowToGroup", 2)]
public int howToGroup;
} // struct SmtpConfigInfo
}
|