private void BuildSubmitMailBody(MailBody mailBody, Account to)
        {
            string        subject     = string.Format("{0}È¡ÏûÇë¼ÙÉêÇ룬ÇëÉóÅú", _LeaveRequest.Account.Name);
            StringBuilder mailContent = new StringBuilder();

            mailContent.Append(LeaveRequestMail.BuildBody(_LeaveRequest));
            LeaveRequestMail.BulidConfirmAddress(mailContent, to, _LeaveRequest.PKID);
            mailBody.Body       = mailContent.ToString();
            mailBody.Subject    = subject;
            mailBody.IsHtmlBody = true;
        }
예제 #2
0
        private void BuildSubmitMailBody(MailBody mailBody, Account to, bool addConfirmAddress)
        {
            string        subject     = string.Format("请审批{0}的请假申请", _LeaveRequest.Account.Name);
            StringBuilder mailContent = new StringBuilder();

            mailContent.Append(LeaveRequestMail.BuildBody(_LeaveRequest));
            if (addConfirmAddress)
            {
                LeaveRequestMail.BulidConfirmAddress(mailContent, to, _LeaveRequest.PKID);
            }
            mailBody.MailTo     = RequestUtility.GetMail(to);
            mailBody.Body       = mailContent.ToString();
            mailBody.Subject    = subject;
            mailBody.IsHtmlBody = true;
        }