Exemplo n.º 1
0
        private void sendmail(DTO.LABURNUM.COM.StudentModel user)
        {
            string from    = Component.Constants.MAIL.MAILSENTFROM;
            string subject = Component.Constants.MAILSUBJECT.REGISTRATIONSUBJECT;
            string body    = new API.LABURNUM.COM.Component.HtmlHelper().RenderViewToString("User", "~/Views/Partial/NewStudentRegistrationMail.cshtml", user);

            if (new Component.Mailer().MailSend(user.EmailId, "", body, from, subject))
            {
            }
            else
            {
            }
        }
Exemplo n.º 2
0
        private void SendChequeStatusUpdateEmail(long studentFeeDetailsId)
        {
            DTO.LABURNUM.COM.StudentFeeDetailModel model = new StudentFeeDetailHelper(new FrontEndApi.StudentFeeDetailApi().GetStudentFeeDetailByID(studentFeeDetailsId)).MapSingle();
            string EmailId = new FrontEndApi.StudentApi().GetStudentByStudentId(model.StudentId).EmailId;
            string from    = Component.Constants.MAIL.MAILSENTFROM;
            string subject = "Cheque Status Update Against Cheque No. " + model.ChequeNumber + " Submitted At Laburnum Public School.";
            string body    = new API.LABURNUM.COM.Component.HtmlHelper().RenderViewToString("User", "~/Views/Partial/EmailBodyForChequeStatusUpdate.cshtml", model);

            if (new Component.Mailer().MailSend(EmailId, "", body, from, subject))
            {
            }
            else
            {
            }
        }
Exemplo n.º 3
0
        private void sendmail(long studentfeeDetailId)
        {
            //DTO.LABURNUM.COM.StudentFeeDetailModel studentfeeDetail = new StudentFeeDetailHelper(new FrontEndApi.StudentFeeDetailApi().GetStudentFeeDetailByID(studentfeeDetailId)).MapSingle();

            DTO.LABURNUM.COM.StudentFeeDetailModel model = new DTO.LABURNUM.COM.StudentFeeDetailModel()
            {
                StudentFeeDetailId = studentfeeDetailId
            };
            model.ApiClientModel.UserName = Component.Constants.APIACCESS.APIUSERNAME;
            model.ApiClientModel.Password = Component.Constants.APIACCESS.APIPASSWORD;
            model = SearchMonthlyFeeReceiptData(model);
            DTO.LABURNUM.COM.StudentModel studentmodel = new StudentHelper(new FrontEndApi.StudentApi().GetStudentByStudentId(model.StudentId)).MapSingle();
            string from    = Component.Constants.MAIL.MAILSENTFROM;
            string subject = "Thank you For Paying Fee For the Month Of " + model.MonthName + "-" + new Component.Utility().GetISTDateTime().Year + " At Laburnum Public School.";
            string body    = new API.LABURNUM.COM.Component.HtmlHelper().RenderViewToString("User", "~/Views/Partial/ThankYouMailOnPaymentOfMonthlyFee.cshtml", model);

            if (new Component.Mailer().MailSend(studentmodel.EmailId, "", body, from, subject))
            {
            }
            else
            {
            }
        }
Exemplo n.º 4
0
        private void sendmail(long studentFeeDetailsId)
        {
            DTO.LABURNUM.COM.StudentFeeDetailModel smodel = new DTO.LABURNUM.COM.StudentFeeDetailModel()
            {
                StudentFeeDetailId = studentFeeDetailsId
            };
            smodel.ApiClientModel.UserName = Component.Constants.APIACCESS.APIUSERNAME;;
            smodel.ApiClientModel.Password = Component.Constants.APIACCESS.APIPASSWORD;;
            DTO.LABURNUM.COM.StudentFeeModel model = SearchAdmissionFeeReceiptDataByDetailId(smodel);
            //DTO.LABURNUM.COM.StudentFeeDetailModel studentfeeDetail = new StudentFeeDetailHelper(new FrontEndApi.StudentFeeDetailApi().GetFeePaidDetailDuringAdmission(studentId, classId, sectionId, academicyearId)).MapSingle();
            DTO.LABURNUM.COM.StudentModel studentmodel = new StudentHelper(new FrontEndApi.StudentApi().GetStudentByStudentId(model.StudentId)).MapSingle();
            model.StudentFeeId = studentFeeDetailsId;
            string from    = Component.Constants.MAIL.MAILSENTFROM;
            string subject = Component.Constants.MAILSUBJECT.ADMISSIONSUBJECT;
            string body    = new API.LABURNUM.COM.Component.HtmlHelper().RenderViewToString("User", "~/Views/Partial/NewAdmissionThankyouEmail.cshtml", model);

            if (new Component.Mailer().MailSend(studentmodel.EmailId, "", body, from, subject))
            {
            }
            else
            {
            }
        }