UserInfo studentInfo = class1.GetUserInfo(testResult.IELTSpediaUserId); UserInfo teacherInfo = class1.GetUserInfo(class1.GetUserId()); string toEmail = ""; string fromEmail = ""; try { toEmail = studentInfo.Email; } catch { } try { fromEmail = teacherInfo.Email; } catch { } string body = "
This is a system email from IELTSpedia Website. Please do not reply this email.
" + "Your teacher at IELTSpedia Website has send to you a message:
" + "" + status.IELTSpediaWritingStatusDescription + "
" + "Teacher's Email: " + teacherInfo.Email + "
" + "Teacher's Name: " + teacherInfo.Username + "
" + "Please access this link to view your test result
" + "Sincerely
"; class1.SendEmailNotification(toEmail, fromEmail, null, "IELTSpedia Teacher's Postponable Message", body, null, teacherInfo.Username, studentInfo.Username); ReopenItem(testResultId);