public bool SendCustomerLoginPassMail(string fromEmail, string toEmail, string senderOrgName, string receiverName, string LoginId, string password, string path)
        {
            bool bResult = false;

            PcgMailMessage email = new PcgMailMessage();

            email.From = new MailAddress(fromEmail, senderOrgName);
            email.To.Add(new MailAddress(toEmail, receiverName));


            email.Subject = senderOrgName + " Login Details";
            email.Body    = CreateHTMLMailBody("Customer Login", senderOrgName, LoginId, password);

            email.IsBodyHtml = true;
            // PCGSmtpClient smtpClient = new PCGSmtpClient(@"d:\temp\emails", "192.168.0.2", 25, 60);
            PCGSmtpClient smtpClient = new PCGSmtpClient(path, "smtpout.secureserver.net", 3535, 60);

            //PCGSmtpClient smtpClient = new PCGSmtpClient(@"d:\temp\emails", "smtp.yourserver.com", 25, 60);
            smtpClient.UseDefaultCredentials = false;
            smtpClient.Credentials           = new System.Net.NetworkCredential("*****@*****.**", "Ampsys123#");


            smtpClient.Send(email);


            return(bResult);
        }
        public bool SendForgotPasswordMail(string fromEmail, string toEmail, string name, string LoginId, string password, string path)
        {
            bool bResult = false;

            PcgMailMessage email = new PcgMailMessage();

            email.From = new MailAddress(fromEmail, "WealthERP Admin");
            email.To.Add(new MailAddress(toEmail, name));


            email.Subject = "Forgot Password";
            email.Body    = CreateHTMLMailBody("ForgotPassword", "", LoginId, password);

            email.IsBodyHtml = true;
            //   PCGSmtpClient smtpClient = new PCGSmtpClient(@"d:\temp\emails", "192.168.0.2", 25, 60);
            PCGSmtpClient smtpClient = new PCGSmtpClient(path, "192.168.0.2", 25, 60);

            //PCGSmtpClient smtpClient = new PCGSmtpClient(@"d:\temp\emails", "smtp.yourserver.com", 25, 60);
            smtpClient.Credentials = new System.Net.NetworkCredential("administrator", "Colours4*", "server");

            smtpClient.Send(email);


            return(bResult);
        }