Exemple #1
0
        void AdminMailer(string BookingID, string Name, string Play, string TotalAmount, string TotalSeats, string DateOfBooking, string ShowDate, string Category, string EmailID, string ReferenceNo, string Mobile, string address)
        {
            Mail.Mail     objMail     = new Mail.Mail();
            Mail.MailData objmaildata = new Mail.MailData();
            objmaildata.from     = ConfigurationManager.AppSettings["FromMail"];
            objmaildata.fromName = "";
            objmaildata.to       = ConfigurationManager.AppSettings["ToMail"];
            objmaildata.toName   = "";
            objmaildata.subject  = "Refund Acknowledgement";

            string BodyMaggage = "<div>"
                                 + "<p>Dear Sir ,<br/></p>"
                                 + "<p>Payment was successfully Reversed for the customer " + Name + " <br/></p>"
                                 + "<p>Follwoing are details of the customer :<br/><br/></p>"
                                 + "<p>Booking Id : " + BookingID + "<br/></p>"
                                 + "<p>Reference Id : " + ReferenceNo + "</p>"
                                 + "<p>Amount Refunded : " + TotalAmount + "<br/></p>"
                                 + "<p>No. of Tickets : " + TotalSeats + "<br/></p>"
                                 + "<p>Show : " + Play + "<br/></p>"
                                 + "<p>Category : " + Category + "<br/></p>"
                                 + "<p>Date of Booking : " + DateOfBooking + "<br/></p>"
                                 + "<p>Show Date : " + ShowDate + "<br/></p>"
                                 + "<p>Customer Name : " + Name + "<br/></p>"
                                 + "<p>Email Address : " + EmailID + "<br/></p>"
                                 + "<p>Address : " + address + "<br/></p>"
                                 + "<p>Mobile No. : " + Mobile + "<br/><br/></p>"
                                 + "<p>With Regards<br/></p>"
                                 + "<p>Kingdom of Dreams Team</p>"
                                 + "<p>Gurgaon</p>"
                                 + "</div>"
            ;

            objmaildata.bodyMessage = BodyMaggage;
            objMail.sendMail_Net(objmaildata);
        }
Exemple #2
0
        //public void TraceService(string content)
        //{

        //    //set up a filestream
        //    FileStream fs = new FileStream(@"d:/HDFC.txt", FileMode.OpenOrCreate, FileAccess.Write);

        //    //set up a streamwriter for adding text
        //    StreamWriter sw = new StreamWriter(fs);

        //    //find the end of the underlying filestream
        //    sw.BaseStream.Seek(0, SeekOrigin.End);

        //    //add the text
        //    sw.WriteLine(content);
        //    //add the text to the underlying filestream

        //    sw.Flush();
        //    //close the writer
        //    sw.Close();
        //}
        /// <summary>
        /// Mailer Function
        /// Mail in Case of Successful Refund
        /// </summary>
        /// <param name="args"></param>
        void CustomerMailer(string BookingID, string Name, string Play, string TotalAmount, string TotalSeats, string DateOfBooking, string ShowDate, string Category, string EmailID)
        {
            Mail.Mail     objMail     = new Mail.Mail();
            Mail.MailData objmaildata = new Mail.MailData();
            objmaildata.from     = ConfigurationManager.AppSettings["FromMail"];
            objmaildata.fromName = "KOD";
            objmaildata.to       = EmailID;
            objmaildata.toName   = Name;
            objmaildata.subject  = "Refund Acknowledgement";

            string BodyMaggage = "<div>"
                                 + "<p>Dear " + Name + " ,<br/></p>"
                                 + "<p>Due to some technical reason's your payment was deducted from the account but your " + Play + " shows tickets were not booked.<br/></p>"
                                 + "<p>So,We have refunded the amount of Rs. " + TotalAmount + " to your account.<br/></p>"
                                 + "<p>Booking Id : " + BookingID + "<br/></p>"
                                 + "<p>Amount Refunded : " + TotalAmount + "<br/></p>"
                                 + "<p>No. of Tickets : " + TotalSeats + "<br/></p>"
                                 + "<p>Show : " + Play + "<br/></p>"
                                 + "<p>Category : " + Category + "<br/></p>"
                                 + "<p>Date of Booking : " + DateOfBooking + "<br/></p>"
                                 + "<p>Show Date : " + ShowDate + "<br/><br/></p>"
                                 + "<p>Sorry for inconvenience<br/></p>"
                                 + "<p>With Regards<br/></p>"
                                 + "<p>Kingdom of Dreams Team</p>"
                                 + "<p>Gurgaon</p>"
                                 + "</div>"
            ;

            objmaildata.bodyMessage = BodyMaggage;
            objMail.sendMail_Net(objmaildata);
        }
Exemple #3
0
        void AdminMailer(string BookingID, string Name, string Play, string TotalAmount, string TotalSeats, string DateOfBooking, string ShowDate, string Category, string EmailID, string ReferenceNo,string Mobile,string address)
        {
            Mail.Mail objMail = new Mail.Mail();
            Mail.MailData objmaildata = new Mail.MailData();
            objmaildata.from = ConfigurationManager.AppSettings["FromMail"];
            objmaildata.fromName = "";
            objmaildata.to = ConfigurationManager.AppSettings["ToMail"];
            objmaildata.toName = "";
            objmaildata.subject = "Refund Acknowledgement";

            string BodyMaggage = "<div>"
                + "<p>Dear Sir ,<br/></p>"
                + "<p>Payment was successfully Reversed for the customer " + Name +" <br/></p>"
                + "<p>Follwoing are details of the customer :<br/><br/></p>"
                + "<p>Booking Id : " + BookingID + "<br/></p>"
                + "<p>Reference Id : " + ReferenceNo + "</p>"
                + "<p>Amount Refunded : " + TotalAmount + "<br/></p>"
                + "<p>No. of Tickets : " + TotalSeats + "<br/></p>"
                + "<p>Show : " + Play + "<br/></p>"
                + "<p>Category : " + Category + "<br/></p>"
                + "<p>Date of Booking : " + DateOfBooking + "<br/></p>"
                + "<p>Show Date : " + ShowDate + "<br/></p>"
                + "<p>Customer Name : " + Name + "<br/></p>"
                + "<p>Email Address : " + EmailID + "<br/></p>"
                + "<p>Address : " + address + "<br/></p>"
                + "<p>Mobile No. : " + Mobile + "<br/><br/></p>"
                + "<p>With Regards<br/></p>"
                + "<p>Kingdom of Dreams Team</p>"
                + "<p>Gurgaon</p>"
                + "</div>"
                ;
            objmaildata.bodyMessage = BodyMaggage;
            objMail.sendMail_Net(objmaildata);
        }
Exemple #4
0
        //public void TraceService(string content)
        //{

        //    //set up a filestream
        //    FileStream fs = new FileStream(@"d:/HDFC.txt", FileMode.OpenOrCreate, FileAccess.Write);

        //    //set up a streamwriter for adding text
        //    StreamWriter sw = new StreamWriter(fs);

        //    //find the end of the underlying filestream
        //    sw.BaseStream.Seek(0, SeekOrigin.End);

        //    //add the text
        //    sw.WriteLine(content);
        //    //add the text to the underlying filestream

        //    sw.Flush();
        //    //close the writer
        //    sw.Close();
        //}
        /// <summary>
        /// Mailer Function 
        /// Mail in Case of Successful Refund
        /// </summary>
        /// <param name="args"></param>
        void CustomerMailer(string BookingID, string Name, string Play, string TotalAmount, string TotalSeats, string DateOfBooking, string ShowDate, string Category, string EmailID)
        {
            Mail.Mail objMail = new Mail.Mail();
            Mail.MailData objmaildata = new Mail.MailData();
            objmaildata.from = ConfigurationManager.AppSettings["FromMail"];
            objmaildata.fromName = "KOD";
            objmaildata.to = EmailID;
            objmaildata.toName = Name;
            objmaildata.subject = "Refund Acknowledgement";

            string BodyMaggage = "<div>"
                + "<p>Dear "+ Name +" ,<br/></p>"
                + "<p>Due to some technical reason's your payment was deducted from the account but your " + Play + " shows tickets were not booked.<br/></p>"
                + "<p>So,We have refunded the amount of Rs. " + TotalAmount + " to your account.<br/></p>"
                + "<p>Booking Id : " + BookingID + "<br/></p>"
                + "<p>Amount Refunded : " + TotalAmount + "<br/></p>"
                + "<p>No. of Tickets : " + TotalSeats + "<br/></p>"
                + "<p>Show : " + Play + "<br/></p>"
                + "<p>Category : " + Category + "<br/></p>"
                + "<p>Date of Booking : " + DateOfBooking + "<br/></p>"
                + "<p>Show Date : " + ShowDate + "<br/><br/></p>"
                + "<p>Sorry for inconvenience<br/></p>"
                + "<p>With Regards<br/></p>"
                + "<p>Kingdom of Dreams Team</p>"
                + "<p>Gurgaon</p>"
                + "</div>"
                ;
            objmaildata.bodyMessage = BodyMaggage;
            objMail.sendMail_Net(objmaildata);
        }