public ActionResult MailSend(List <string> Receiver, string Subject, string MailContent, List <string> cc, List <string> bcc)
        {
            try
            {
                List <MimeKit.MailboxAddress> receiverList = new List <MimeKit.MailboxAddress>();
                Receiver.ForEach(x =>
                {
                    receiverList.Add(new MimeKit.MailboxAddress(x));
                });

                if (cc == null)
                {
                    cc = new List <string>();
                }

                if (bcc == null)
                {
                    bcc = new List <string>();
                }

                MailRepository mailRepository = Session["MailRepository"] as MailRepository;

                mailRepository.SendAdvanced(
                    receiverList,
                    new List <MimeKit.MailboxAddress>()
                {
                    new MimeKit.MailboxAddress(mailRepository.login)
                },
                    Subject,
                    MailContent,
                    cc.ToArray(),
                    bcc.ToArray());

                return(Json(true, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                return(Json(false, JsonRequestBehavior.AllowGet));
            }
        }