dmdb/model/ConfigSmtp.cs

19 lines
725 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
namespace dezentrale.model
{
public class ConfigSmtp : XmlData
{
[XmlElement] public string Host { get; set; } = "localhost";
[XmlElement] public int Port { get; set; } = 587;
[XmlElement] public bool SSL { get; set; } = true;
[XmlElement] public string From { get; set; } = "John Doe <john.doe@example.com>";
[XmlElement] public string UserName { get; set; } = "username"; //you might need to use a complete e-mail address here.
[XmlElement] public string Password { get; set; } = "password";
}
}