public void SendAdminMails(string Adminmail, string OtherAdminMails, string TributeId, string TributeName, string TributeType, string TributeUrl, string Username)
        {
            UserInfoResource objUser = new UserInfoResource();
            EmailMessages objEmail = EmailMessages.Instance;
            string[] toemails = OtherAdminMails.Split(',');
            for (int i = 0; i < toemails.Length; i++)
            {
                MailBodies objMailbod = new MailBodies();
                string _EmailBody = objMailbod.AdminRequest(Username, TributeType, TributeName, TributeUrl, TributeId, toemails[i]);
                // string _EmailBody = GetAdminBody(TributeId, TributeName, toemails[i]);
                bool val = objEmail.SendMessages(Adminmail, toemails[i], Username + " made you a " + WebConfig.ApplicationWordForInternalUse.ToLower() + " administrator...", _EmailBody, EmailMessages.TextFormat.Html.ToString());

            }
        }
        public void SendAdminMails(int SendByUserId, string SendToUserId, string TributeId, string TributeName, string TributeType, string userName)
        {
            Tributes objTribute = new Tributes();
            objTribute.TributeId = int.Parse(TributeId);
            TributeManager objtrbmngr = new TributeManager();
            objtrbmngr.GetTributeSession(objTribute);

            EmailMessages objEmail = EmailMessages.Instance;
            // string fromMail = GetEmail(SendByUserId);
            string fromMail = "Your Tribute <" + WebConfig.NoreplyEmail + ">";
            string tomail = SendToUserId;

            MailBodies objMailbod = new MailBodies();
            string _EmailBody = objMailbod.AdminRequest(userName, TributeType, TributeName, objTribute.TributeUrl, TributeId, tomail);

            bool val = objEmail.SendMessages(fromMail, tomail, userName + " made you a " + WebConfig.ApplicationWordForInternalUse.ToLower() + " administrator...", _EmailBody, EmailMessages.TextFormat.Html.ToString());
        }