Пример #1
0
        protected void StudentScheduleMailtoProctor(Int64 TransID)
        {
            stbEmail = new StringBuilder();
            stbEmail.Append("<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" >");
            stbEmail.Append("<tr><td><img src=\"http://demo.secureproctor.com/images/logo.png\" />");
            stbEmail.Append("<tr><td>&nbsp;</td></tr>");
            stbEmail.Append("<tr><td>Student Exam Scheduled information.</td></tr>");
            stbEmail.Append("<tr><td>&nbsp;</td></tr>");
            stbEmail.Append("<tr><td>&nbsp;</td></tr>");
            stbEmail.Append("<tr><td>Student Name : @STUDENTNAME</td></tr>");
            stbEmail.Append("<tr><td>ID : @EXAMID</td></tr>");
            stbEmail.Append("<tr><td>Course Name : @COURSENAME</td></tr>");
            stbEmail.Append("<tr><td>Exam Name : @EXAMNAME</td></tr>");
            stbEmail.Append("<tr><td>Date : @DATE</td></tr>");
            stbEmail.Append("<tr><td>Time : @TIME [CST]</td></tr>");
            stbEmail.Append("<tr><td>&nbsp;</td></tr>");
            stbEmail.Append("<tr><td>Thanks,</td></tr>");
            stbEmail.Append("<tr><td>Examity Team.</td></tr>");
            stbEmail.Append("<tr><td>Examity LLC. ALL RIGHTS RESERVED.</td></tr>");
            stbEmail.Append("<tr><td>Contact Us: [email protected]</td></tr>");
            stbEmail.Append("<tr><td>***<b>DO NOT REPLY TO THIS EMAIL</b>***</td></tr>");
            stbEmail.Append("<tr><td></td></tr></table>");

            BEStudent objBEStudent = new BEStudent();
            BStudent  objBStudent  = new BStudent();

            objBEStudent.IntTransID = TransID;
            objBStudent.BGetStudentExamDetails(objBEStudent);

            stbEmail.Replace("@EXAMID", TransID.ToString());
            stbEmail.Replace("@STUDENTNAME", objBEStudent.DtResult.Rows[0]["Name"].ToString());
            stbEmail.Replace("@COURSENAME", objBEStudent.DtResult.Rows[0]["CourseName"].ToString());
            stbEmail.Replace("@EXAMNAME", objBEStudent.DtResult.Rows[0]["ExamName"].ToString());
            stbEmail.Replace("@DATE", objBEStudent.DtResult.Rows[0]["ExamDate"].ToString());
            stbEmail.Replace("@TIME", objBEStudent.DtResult.Rows[0]["TimeDuration"].ToString());
            stbEmail.Replace("@URL", "http://test.secureproctor.com/njit/login.aspx");

            this.SendMail(stbEmail.ToString(), "Examity: FYI " + objBEStudent.DtResult.Rows[0]["ExamName"].ToString() + " Exam Scheduled Details [" + TransID.ToString() + "]");
        }