新增加发送邮件功能
This commit is contained in:
@@ -21,11 +21,11 @@ namespace Infrastructure
|
||||
int day = date.Day;
|
||||
int hour = date.Hour;
|
||||
|
||||
string timeDir = $"{year}/{month}/{day}/{hour}";// date.ToString("yyyyMM/dd/HH/");
|
||||
string timeDir = $"{year}{month}{day}";// date.ToString("yyyyMM/dd/HH/");
|
||||
|
||||
if (!string.IsNullOrEmpty(path))
|
||||
{
|
||||
timeDir = $"{path}/{timeDir}";
|
||||
timeDir = $"{path}/{timeDir}/";
|
||||
}
|
||||
return timeDir;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace Infrastructure
|
||||
{
|
||||
public string From { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string Host { get; set; }
|
||||
public string Smtp { get; set; }
|
||||
public int Port { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user