Files
FileFlowsPlugins/EmailNodes/PluginSettings.cs
2024-04-24 17:57:38 +12:00

30 lines
810 B
C#

namespace FileFlows.EmailNodes
{
using FileFlows.Plugin;
using FileFlows.Plugin.Attributes;
using System;
using System.ComponentModel.DataAnnotations;
public class PluginSettings:IPluginSettings
{
[Required]
[Text(1)]
public string SmtpServer { get; set; } = string.Empty;
[Range(1, 6555)]
[NumberInt(1)]
public int SmtpPort { get; set; }
[Text(2)]
public string SmtpUsername { get; set; } = string.Empty;
[Password(3)]
public string SmtpPassword { get; set; } = string.Empty;
[Text(4)]
[Required]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$")]
public string Sender { get; set; } = string.Empty;
}
}