/// <summary>
/// 發送郵件
/// </summary>
/// <param name="SendTo">發送人的地址</param>
/// <param name="MyEmail">我的Email地址</param>
/// <param name="SendTitle">發送標題</param>
/// <param name="SendBody">發送的內容</param>
/// <param name="SendShowName">我的Email登錄名</param>
/// <param name="MyEmailPassWord">我的Email密碼</param>
/// <param name="MyEmailSmtp">Smtp郵件服務器</param>
/// <param name="FilePath">附件地址</param>
private void SendEmail(string SendTo, string MyEmail, string SendTitle, string SendBody, string SendShowName, string MyEmailPassWord,string FilePath, string MyEmailSmtp)
{
MailMessage mailObj = new MailMessage();
mailObj.From = new MailAddress(MyEmail);//"發送郵箱地址"
mailObj.To.Add(SendTo);//"接收郵箱地址"
mailObj.Subject = SendTitle;// "主題"
mailObj.Body = SendBody;// "內容"
mailObj.Attachments.Add(new Attachment(FilePath));
mailObj.IsBodyHtml = true;
SmtpClient smtp = new SmtpClIEnt();