Ejemplo n.º 1
0
        void SignUpMailer(String webid)
        {
            RoyalWebApp.EntityServiceReference.EntityServiceClient ServiceClient = new RoyalWebApp.EntityServiceReference.EntityServiceClient();
            ServiceClient.Open();
            var arr = ServiceClient.GetTempUserDetailsByWebId(webid);
            if (arr.Length > 0)
            {
                String Toname = arr[0].FirstName + " " + arr[0].LastName;
                String Toemail = arr[0].Email.ToString();
                ServiceClient.Close();
                // Mailer(txtEmailId.Text.ToString(), WebMemberId, txtFirstName.Text.ToString() + txtLastName.Text.ToString(), txtPassword.Text.ToString());

                RoyalWebApp.MailServer objMail = new RoyalWebApp.MailServer();
                RoyalWebApp.MailData objmaildata = new RoyalWebApp.MailData();
                objmaildata.from = "*****@*****.**";
                objmaildata.fromName = "KOD ROYAL CARD TEAM";
                //objmaildata.to = "*****@*****.**";
                objmaildata.to = Toemail.ToString();
                objmaildata.toName = Toname.ToString();
                objmaildata.subject = "Royal Card Membership Mail";
                string BodyMaggage = "<p> Dear : " + Toname.ToString() + "</p>"
                     + "<p> Thanks for registering with us </p>"
                     + "<p> Your  Email Id: " + Toemail.ToString() + "</p>"
                     + "<p> Your  Web Booking Id: " + webid.ToString() + "</p>"
                     + "<p>  We will mail your card soon </p>"
                     + "<p>Regards</p><p>KOD ROYAL CARD TEAM</p>"
                    ;
                objmaildata.bodyMessage = BodyMaggage;
                objMail.sendMail_Net(objmaildata);
            }
        }
Ejemplo n.º 2
0
        void SignUpMailer(String webid)
        {
            RoyalWebApp.EntityServiceReference.EntityServiceClient ServiceClient = new RoyalWebApp.EntityServiceReference.EntityServiceClient();
            ServiceClient.Open();
            var arr = ServiceClient.GetTempUserDetailsByWebId(webid);

            if (arr.Length > 0)
            {
                String Toname  = arr[0].FirstName + " " + arr[0].LastName;
                String Toemail = arr[0].Email.ToString();
                ServiceClient.Close();
                // Mailer(txtEmailId.Text.ToString(), WebMemberId, txtFirstName.Text.ToString() + txtLastName.Text.ToString(), txtPassword.Text.ToString());

                RoyalWebApp.MailServer objMail     = new RoyalWebApp.MailServer();
                RoyalWebApp.MailData   objmaildata = new RoyalWebApp.MailData();
                objmaildata.from     = "*****@*****.**";
                objmaildata.fromName = "KOD ROYAL CARD TEAM";
                //objmaildata.to = "*****@*****.**";
                objmaildata.to      = Toemail.ToString();
                objmaildata.toName  = Toname.ToString();
                objmaildata.subject = "Royal Card Membership Mail";
                string BodyMaggage = "<p> Dear : " + Toname.ToString() + "</p>"
                                     + "<p> Thanks for registering with us </p>"
                                     + "<p> Your  Email Id: " + Toemail.ToString() + "</p>"
                                     + "<p> Your  Web Booking Id: " + webid.ToString() + "</p>"
                                     + "<p>  We will mail your card soon </p>"
                                     + "<p>Regards</p><p>KOD ROYAL CARD TEAM</p>"
                ;
                objmaildata.bodyMessage = BodyMaggage;
                objMail.sendMail_Net(objmaildata);
            }
        }
Ejemplo n.º 3
0
        void HTMLSignUpMailer(String webid)
        {
            RoyalWebApp.EntityServiceReference.EntityServiceClient ServiceClient = new RoyalWebApp.EntityServiceReference.EntityServiceClient();
            ServiceClient.Open();
            var arr = ServiceClient.GetTempUserDetailsByWebId(webid);

            if (arr.Length > 0)
            {
                String Toname  = arr[0].FirstName + " " + arr[0].LastName;
                String Toemail = arr[0].Email.ToString();
                ServiceClient.Close();
                // Mailer(txtEmailId.Text.ToString(), WebMemberId, txtFirstName.Text.ToString() + txtLastName.Text.ToString(), txtPassword.Text.ToString());

                RoyalWebApp.MailServer objMail     = new RoyalWebApp.MailServer();
                RoyalWebApp.MailData   objmaildata = new RoyalWebApp.MailData();
                objmaildata.from     = "*****@*****.**";
                objmaildata.fromName = "KOD ROYAL CARD TEAM";
                //objmaildata.to = "*****@*****.**";
                objmaildata.to      = Toemail.ToString();
                objmaildata.toName  = Toname.ToString();
                objmaildata.subject = "Royal Card Membership Mail";
                string BodyMaggage = "<div style='height:990px; width:700px; background:url(http://royalty.kingdomofdreams.in/Skins/images/EmailerBg.jpg) no-repeat;'>"
                                     + "<div style='padding:380px 20px 20px 65px; font-family:Palatino Linotype, Century Gothic, Arial; font-weight:bold;'>"
                                     + "<p> Your holiness <b> " + Toname.ToString()
                                     + "</b> </p><p>, Thank you for enrolling with the Royal council, redeem a world of exclusivity! </p>"
                                     + "<p> Your  Web Booking Id is :<b> " + webid.ToString() + "</b></p>"
                                     + "<p> Your activation details will be with you soon. </p>";


                objmaildata.bodyMessage = BodyMaggage;
                objMail.SendMailKOD(objmaildata);
            }
        }
Ejemplo n.º 4
0
        //        EntityServiceReference.EntityServiceClient ServiceClientInsert = new EntityServiceReference.EntityServiceClient();
        //        ServiceClientInsert.Open();
        //        var confirm = ServiceClientInsert.InsertUserDetails(WebMemberId, RdGender.SelectedValue.ToString(), txtFirstName.Text.ToString(), txtLastName.Text.ToString(), txtAddress.Text.ToString(), txtAddress.Text.ToString(), txtCity.Text.ToString(), DdlCountry.SelectedItem.Text.ToString(), txtMobileNo.Text.ToString(), txtMobileNo.Text.ToString(), txtEmailId.Text.ToString(), dtdob, dtdoa, RdMartialStatus.SelectedValue.ToString(), Gender, paidamount, DateTime.Now, "0", "-", txtEmailId.Text.ToString(), txtPassword.Text.ToString(), txtDesignation.Text.ToString(), false, false);
        //        //// Mailer(txtEmailId.Text.ToString(), WebMemberId, txtFirstName.Text.ToString() + txtLastName.Text.ToString(), txtPassword.Text.ToString());
        //        if (confirm.Length > 0)
        //        {
        //            WebMemberId = confirm[0].tempwebid.Value.ToString();
        //        }
        //        ServiceClientInsert.Close();
        //        }
        //        catch (Exception ex)
        //        {
        //            LblMsg.Text = ex.Message;
        //        }
        //        //go for payment
        //        if (WebMemberId != "" && WebMemberId != null)
        //        {
        //            Response.Redirect("PGDetails.aspx?Type=signup&WebId=" + WebMemberId.ToString());
        //        }
        //}
        void HTMLSignUpMailer(String webid)
        {
            RoyalWebApp.EntityServiceReference.EntityServiceClient ServiceClient = new RoyalWebApp.EntityServiceReference.EntityServiceClient();
            ServiceClient.Open();
            var arr = ServiceClient.GetTempUserDetailsByWebId(webid);

            if (arr.Length > 0)
            {
                String Toname   = arr[0].FirstName + " " + arr[0].LastName;
                String Toemail  = arr[0].Email.ToString();
                String ToMobile = arr[0].Mobile.ToString();
                ServiceClient.Close();
                // Mailer(txtEmailId.Text.ToString(), WebMemberId, txtFirstName.Text.ToString() + txtLastName.Text.ToString(), txtPassword.Text.ToString());

                RoyalWebApp.MailServer objMail     = new RoyalWebApp.MailServer();
                RoyalWebApp.MailData   objmaildata = new RoyalWebApp.MailData();
                objmaildata.from     = "*****@*****.**";
                objmaildata.fromName = "Royal Card Programme";
                objmaildata.CCto     = "*****@*****.**";
                //objmaildata.to = "*****@*****.**";
                objmaildata.to      = Toemail.ToString();
                objmaildata.toName  = Toname.ToString();
                objmaildata.subject = "Welcome to the world of Royalty and exclusivity";
                string BodyMaggage = "<div style='height:990px; width:700px;'>"
                                     + "<div style='padding:380px 20px 20px 65px; font-family:Palatino Linotype, Century Gothic, Arial;'>"
                                     + "<p align=left> Website Enrollment No:  " + webid.ToString() + "</p>"
                                     + "<p align=left> Dear  " + Toname.ToString()
                                     + "</p><p>Congratulations!  We are delighted to welcome you to The Royal Card membership program of Kingdom of Dreams. The programme has been thoughtfully designed to offer you an unmatched experience to fulfill your entertainment needs.</p>"
                                     + "<p>As a Royal Purple Card member, you have access to a world of privileges and services which includes, amongst others, like separate entry podium into Kingdom of Dreams, bonus points on special occasions, upgrade vouchers and much more!</p>"
                                     + "<p><b>Your membership card will be delivered to you in person on your visit to Kingdom of Dreams. Please carry a copy of this email along with yourself for verification purpose.</b></p>"
                                     + "<p>We look forward to an enduring association with you. Please find attached detailed benefits of the membership programme.</p>"
                                     + "<p align=left>Sincerely,<br/>Loyalty Department, Kingdom of Dreams<br/>Tel: 0124-4847435<br/>Email Id: [email protected]<br/>Website: http://royalty.kingdomofdreams.in</p>"
                                     + "<p>*All the benefits and privileges of Royal Membership Card can be availed only after receiving Royal Card. Please collect your card from Kingdom of Dreams and present your card before each transaction you made at Kingdom of Dreams. </p>";


                objmaildata.bodyMessage = BodyMaggage;
                objMail.SendMailKOD(objmaildata);

                // send sign up SMS
                SendSignUpSMS(webid.ToString(), ToMobile.ToString());
            }
        }
Ejemplo n.º 5
0
        //        EntityServiceReference.EntityServiceClient ServiceClientInsert = new EntityServiceReference.EntityServiceClient();
        //        ServiceClientInsert.Open();
        //        var confirm = ServiceClientInsert.InsertUserDetails(WebMemberId, RdGender.SelectedValue.ToString(), txtFirstName.Text.ToString(), txtLastName.Text.ToString(), txtAddress.Text.ToString(), txtAddress.Text.ToString(), txtCity.Text.ToString(), DdlCountry.SelectedItem.Text.ToString(), txtMobileNo.Text.ToString(), txtMobileNo.Text.ToString(), txtEmailId.Text.ToString(), dtdob, dtdoa, RdMartialStatus.SelectedValue.ToString(), Gender, paidamount, DateTime.Now, "0", "-", txtEmailId.Text.ToString(), txtPassword.Text.ToString(), txtDesignation.Text.ToString(), false, false);
        //        //// Mailer(txtEmailId.Text.ToString(), WebMemberId, txtFirstName.Text.ToString() + txtLastName.Text.ToString(), txtPassword.Text.ToString());
        //        if (confirm.Length > 0)
        //        {
        //            WebMemberId = confirm[0].tempwebid.Value.ToString();
        //        }
        //        ServiceClientInsert.Close();
        //        }
        //        catch (Exception ex)
        //        {
        //            LblMsg.Text = ex.Message;
        //        }
        //        //go for payment
        //        if (WebMemberId != "" && WebMemberId != null)
        //        {
        //            Response.Redirect("PGDetails.aspx?Type=signup&WebId=" + WebMemberId.ToString());
        //        }
        //}
        void HTMLSignUpMailer(String webid)
        {
            RoyalWebApp.EntityServiceReference.EntityServiceClient ServiceClient = new RoyalWebApp.EntityServiceReference.EntityServiceClient();
            ServiceClient.Open();
            var arr = ServiceClient.GetTempUserDetailsByWebId(webid);
            if (arr.Length > 0)
            {
                String Toname = arr[0].FirstName + " " + arr[0].LastName;
                String Toemail = arr[0].Email.ToString();
                String ToMobile = arr[0].Mobile.ToString();
                ServiceClient.Close();
                // Mailer(txtEmailId.Text.ToString(), WebMemberId, txtFirstName.Text.ToString() + txtLastName.Text.ToString(), txtPassword.Text.ToString());

                RoyalWebApp.MailServer objMail = new RoyalWebApp.MailServer();
                RoyalWebApp.MailData objmaildata = new RoyalWebApp.MailData();
                objmaildata.from = "*****@*****.**";
                objmaildata.fromName = "Royal Card Programme";
                objmaildata.CCto = "*****@*****.**";
                //objmaildata.to = "*****@*****.**";
                objmaildata.to = Toemail.ToString();
                objmaildata.toName = Toname.ToString();
                objmaildata.subject = "Welcome to the world of Royalty and exclusivity";
                string BodyMaggage = "<div style='height:990px; width:700px;'>"
                                     + "<div style='padding:380px 20px 20px 65px; font-family:Palatino Linotype, Century Gothic, Arial;'>"
                                     + "<p align=left> Website Enrollment No:  " + webid.ToString() + "</p>"
                                     + "<p align=left> Dear  " + Toname.ToString()
                                     + "</p><p>Congratulations!  We are delighted to welcome you to The Royal Card membership program of Kingdom of Dreams. The programme has been thoughtfully designed to offer you an unmatched experience to fulfill your entertainment needs.</p>"
                                     + "<p>As a Royal Purple Card member, you have access to a world of privileges and services which includes, amongst others, like separate entry podium into Kingdom of Dreams, bonus points on special occasions, upgrade vouchers and much more!</p>"
                                     + "<p><b>Your membership card will be delivered to you in person on your visit to Kingdom of Dreams. Please carry a copy of this email along with yourself for verification purpose.</b></p>"
                                     + "<p>We look forward to an enduring association with you. Please find attached detailed benefits of the membership programme.</p>"
                                     + "<p align=left>Sincerely,<br/>Loyalty Department, Kingdom of Dreams<br/>Tel: 0124-4847435<br/>Email Id: [email protected]<br/>Website: http://royalty.kingdomofdreams.in</p>"
                                     + "<p>*All the benefits and privileges of Royal Membership Card can be availed only after receiving Royal Card. Please collect your card from Kingdom of Dreams and present your card before each transaction you made at Kingdom of Dreams. </p>";


                objmaildata.bodyMessage = BodyMaggage;
                objMail.SendMailKOD(objmaildata);

                // send sign up SMS
                SendSignUpSMS(webid.ToString(), ToMobile.ToString());

            }
        }
Ejemplo n.º 6
0
        void HTMLSignUpMailer(String webid)
        {
            RoyalWebApp.EntityServiceReference.EntityServiceClient ServiceClient = new RoyalWebApp.EntityServiceReference.EntityServiceClient();
            ServiceClient.Open();
            var arr = ServiceClient.GetTempUserDetailsByWebId(webid);
            if (arr.Length > 0)
            {
                String Toname = arr[0].FirstName + " " + arr[0].LastName;
                String Toemail = arr[0].Email.ToString();
                ServiceClient.Close();
                // Mailer(txtEmailId.Text.ToString(), WebMemberId, txtFirstName.Text.ToString() + txtLastName.Text.ToString(), txtPassword.Text.ToString());

                RoyalWebApp.MailServer objMail = new RoyalWebApp.MailServer();
                RoyalWebApp.MailData objmaildata = new RoyalWebApp.MailData();
                objmaildata.from = "*****@*****.**";
                objmaildata.fromName = "KOD ROYAL CARD TEAM";
                //objmaildata.to = "*****@*****.**";
                objmaildata.to = Toemail.ToString();
                objmaildata.toName = Toname.ToString();
                objmaildata.subject = "Royal Card Membership Mail";
                string BodyMaggage = "<div style='height:990px; width:700px; background:url(http://royalty.kingdomofdreams.in/Skins/images/EmailerBg.jpg) no-repeat;'>"
                                     + "<div style='padding:380px 20px 20px 65px; font-family:Palatino Linotype, Century Gothic, Arial; font-weight:bold;'>"
                                     + "<p> Your holiness <b> " + Toname.ToString()
                                     + "</b> </p><p>, Thank you for enrolling with the Royal council, redeem a world of exclusivity! </p>"
                                     + "<p> Your  Web Booking Id is :<b> " + webid.ToString() + "</b></p>"
                                     + "<p> Your activation details will be with you soon. </p>";


                objmaildata.bodyMessage = BodyMaggage;
                objMail.SendMailKOD(objmaildata);

            }
        }