using zero.Core.Attributes;
using zero.Core.Entities;
namespace zero.Core.Entities
{
public class MailTemplate : ZeroEntity, IMailTemplate
{
///
public string Key { get; set; }
///
public string SenderEmail { get; set; }
///
public string SenderName { get; set; }
///
public string RecipientEmail { get; set; }
///
public string Cc { get; set; }
///
public string Bcc { get; set; }
///
public string Subject { get; set; }
///
public string Body { get; set; }
}
[Collection("MailTemplates")]
public interface IMailTemplate : IZeroEntity, IZeroDbConventions
{
///
/// Alias which is used to get the template in code
///
string Key { get; set; }
///
/// Email address of the sender (overrides email from application)
///
string SenderEmail { get; set; }
///
/// Name of the sender (overrides name from application)
///
string SenderName { get; set; }
///
/// Email address of the recipient. This is only necessary for templates which do not have a dynamic recipient (e.g. reports).
///
string RecipientEmail { get; set; }
///
/// Additional comma-separated emails to send a copy to
///
string Cc { get; set; }
///
/// Additional comma-separated emails to send a hidden copy to
///
string Bcc { get; set; }
///
/// Email subject (can contain placeholders)
///
string Subject { get; set; }
///
/// Email body (can contain placeholders)
///
string Body { get; set; }
}
}