diff --git a/EuroTran/EasyBL.WEBAPP/SYS/MembersMaintain_UpdService.cs b/EuroTran/EasyBL.WEBAPP/SYS/MembersMaintain_UpdService.cs index a9337f2..4a52c5b 100644 --- a/EuroTran/EasyBL.WEBAPP/SYS/MembersMaintain_UpdService.cs +++ b/EuroTran/EasyBL.WEBAPP/SYS/MembersMaintain_UpdService.cs @@ -1,4 +1,5 @@ using EasyBL.WebApi.Message; +using EasyBL.WEBAPP.ShowEasy; using EasyNet; using Entity.Sugar; using Entity.ViewModels; @@ -9,6 +10,7 @@ using SqlSugar.Base; using System; using System.Collections.Generic; using System.Linq; +using System.Text; namespace EasyBL.WEBAPP.WSM { @@ -130,9 +132,9 @@ namespace EasyBL.WEBAPP.WSM Type = "to" }; toEmail.Add(oEmailTo); - oEmail.FromUserName = "系統自動發送";//取fonfig - oEmail.Title = "奕達運通管理系統信息派送";//取fonfig - oEmail.EmailBody = "新密碼為:123456"; + oEmail.FromUserName = "No-Reply@showeasy.com";//取fonfig + oEmail.Title = "ShowEasy 帳號成功建立";//取fonfig + oEmail.EmailBody = NewMember(oEntity.MemberID, oEntity.MemberName); oEmail.IsCCSelf = false; oEmail.Attachments = null; oEmail.EmailTo = toEmail; @@ -462,5 +464,45 @@ namespace EasyBL.WEBAPP.WSM } #endregion 帳號管理(查詢筆數) + + //newMemberMail + private string NewMember(string MemberID, string MemberName) + { + + StringBuilder sb = new StringBuilder(); + + EmailTemplate mailTemplate = new EmailTemplate(); + + sb.Append(mailTemplate.MailHeader()); + sb.Append(mailTemplate.MailCSS()); + //Email Body + sb.Append("
"); + sb.Append("");
+ sb.Append(" ");
+ sb.Append("Hello, " + MemberName + "");
+ sb.Append(" | ");
+ sb.Append("