Exemple #1
0
        protected void MailToUser(String ToMail, String ToName)
        {
            MailServer objMail     = new MailServer();
            MailData   objmaildata = new MailData();

            objmaildata.from     = "*****@*****.**";
            objmaildata.fromName = "*****@*****.**";
            objmaildata.to       = ToMail.ToString();
            //objmaildata.to = "*****@*****.**";
            objmaildata.toName  = "Royal Card Feedback: Mail";
            objmaildata.subject = "Royal Card Feedback Mail";
            string BodyMaggage = "<p>Dear  " + ToName.ToString() + ",</p>"
                                 + "<p> Thanks for your kind Feedback </p>"
                                 + "<p>We will get back to you soon</p>"
                                 + "<p>Regards</p><p> KOD ROYAL CARD TEAM </p>"
            ;

            objmaildata.bodyMessage = BodyMaggage;
            objMail.sendMail_Net(objmaildata);
        }
Exemple #2
0
        protected void MailToAdmin(String FromMail)
        {
            MailServer objMail     = new MailServer();
            MailData   objmaildata = new MailData();

            objmaildata.from     = FromMail.ToString();
            objmaildata.fromName = FromMail.ToString();
            objmaildata.to       = "*****@*****.**";
            //objmaildata.to = "*****@*****.**";
            //objmaildata.to = "*****@*****.**";
            objmaildata.toName  = "Royal Card Feedback: Mail";
            objmaildata.subject = "Royal Card Feedback Mail";
            string BodyMaggage = "";

            if (Session["RegId"].ToString() == "" || Session["RegId"] == null)
            {
                BodyMaggage = "<p>Dear Admin</p>"
                              + "<p> Name : " + txtFirstName.Text.ToString() + "</p>"
                              + "<p> Email Id: " + FromMail.ToString() + "</p>"
                              + "<p> Mobile No. : " + txtmobile.Text.ToString() + "</p>"
                              + "<p> Topic : " + Rdtopic.SelectedItem.Text.ToString() + "</p>"
                              + "<p> Comment: " + txtComments.Text.ToString() + "</p>"
                              + "<p>Regards</p><p> " + txtFirstName.Text.ToString() + "</p>"
                ;
            }
            else
            {
                BodyMaggage = "<p> Member ID: " + Session["RegId"].ToString() + "</p>"
                              + "<p> Name : " + txtFirstName.Text.ToString() + "</p>"
                              + "<p> Email Id: " + FromMail.ToString() + "</p>"
                              + "<p> Mobile No. : " + txtmobile.Text.ToString() + "</p>"
                              + "<p> Topic : " + Rdtopic.SelectedItem.Text.ToString() + "</p>"
                              + "<p> Comment: " + txtComments.Text.ToString() + "</p>"
                              + "<p>Regards</p><p> " + Session["RegId"].ToString() + "</p>"
                ;
            }
            objmaildata.bodyMessage = BodyMaggage;
            objMail.sendMail_Net(objmaildata);
        }
 protected void MailToAdmin(String FromMail)
 {
     MailServer objMail = new MailServer();
     MailData objmaildata = new MailData();
     objmaildata.from = FromMail.ToString();
     objmaildata.fromName = FromMail.ToString();
     objmaildata.to = "*****@*****.**";
     //objmaildata.to = "*****@*****.**";
     //objmaildata.to = "*****@*****.**";
     objmaildata.toName = "Royal Card Feedback: Mail";
     objmaildata.subject = "Royal Card Feedback Mail";
     string BodyMaggage = "";
     if (Session["RegId"].ToString() == "" || Session["RegId"] == null)
     {
         BodyMaggage = "<p>Dear Admin</p>"
         +"<p> Name : "+txtFirstName.Text.ToString()+"</p>"
         +"<p> Email Id: " + FromMail.ToString() + "</p>"
         + "<p> Mobile No. : " + txtmobile.Text.ToString() + "</p>"
         + "<p> Topic : " + Rdtopic.SelectedItem.Text.ToString() + "</p>"
         + "<p> Comment: " + txtComments.Text.ToString() + "</p>"
         + "<p>Regards</p><p> " + txtFirstName.Text.ToString() + "</p>"
         ;
     }
     else
     {
         BodyMaggage = "<p> Member ID: " + Session["RegId"].ToString() + "</p>"
             + "<p> Name : " + txtFirstName.Text.ToString() + "</p>"
             + "<p> Email Id: " + FromMail.ToString() + "</p>"
             + "<p> Mobile No. : " + txtmobile.Text.ToString() + "</p>"
             + "<p> Topic : " + Rdtopic.SelectedItem.Text.ToString() + "</p>"
             + "<p> Comment: " + txtComments.Text.ToString() + "</p>"
             + "<p>Regards</p><p> " + Session["RegId"].ToString() + "</p>"
             ;
     }
     objmaildata.bodyMessage = BodyMaggage;
     objMail.sendMail_Net(objmaildata);
 }
 protected void MailToUser(String ToMail, String ToName)
 {
     MailServer objMail = new MailServer();
     MailData objmaildata = new MailData();
     objmaildata.from = "*****@*****.**";
     objmaildata.fromName = "*****@*****.**";
     objmaildata.to = ToMail.ToString();
     //objmaildata.to = "*****@*****.**";
     objmaildata.toName = "Royal Card Feedback: Mail";
     objmaildata.subject = "Royal Card Feedback Mail";
     string BodyMaggage = "<p>Dear  " + ToName.ToString() + ",</p>"
         + "<p> Thanks for your kind Feedback </p>"
         + "<p>We will get back to you soon</p>"
         + "<p>Regards</p><p> KOD ROYAL CARD TEAM </p>"
         ;
     objmaildata.bodyMessage = BodyMaggage;
     objMail.sendMail_Net(objmaildata);
 }