private static void BuildSubmitMailBody(TraineeApplication traineeApplication,
                                                MailBody mailBody, Account to, bool addConfirmAddress)
        {
            string        subject     = string.Format("{0}Ìá½»ÅàѵÉêÇ룬ÇëÉóÅú", traineeApplication.Applicant.Name);
            StringBuilder mailContent = new StringBuilder();

            mailContent.Append(TraineeApplicationMail.BuildBody(traineeApplication));
            if (addConfirmAddress)
            {
                TraineeApplicationMail.BulidConfirmAddress(mailContent, to, traineeApplication.PKID);
            }
            mailBody.Body       = mailContent.ToString();
            mailBody.Subject    = subject;
            mailBody.IsHtmlBody = true;
        }
Example #2
0
        private void BuildSubmitMailBody(MailBody mailBody, Account to, bool addConfirmAddress)
        {
            string        subject     = string.Format("ÇëÉóÅú{0}µÄÅàѵÉêÇë", _TraineeApplication.Applicant.Name);
            StringBuilder mailContent = new StringBuilder();

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