Пример #1
0
 static void Main(string[] args)
 {
     // Print 100 randomly generated passwords (8-to-10 char long).
     for (int i = 0; i < 100; i++)
     {
         Console.WriteLine(RandomPassword.Generate(8, 10));
     }
 }
        public ActionResult RandomPassword(LeaveSystemMVC.Models.RandomPassword model)
        {
            System.Diagnostics.Debug.WriteLine(LeaveSystemMVC.Models.RandomPassword.Generate(7, 7));

            MailMessage message = new MailMessage();

            message.From = new MailAddress("*****@*****.**", "GIMEL LMS");



            message.To.Add(new MailAddress("*****@*****.**"));

            message.Subject = "This is my subject";

            message.Body = "This is the content";

            SmtpClient client = new SmtpClient();

            client.EnableSsl   = true;
            client.Credentials = new NetworkCredential("*****@*****.**", "ict@333");

            client.Send(message);
            return(View());
        }
Пример #3
0
 public ActionResult RandomPassword(LeaveSystemMVC.Models.RandomPassword model)
 {
     System.Diagnostics.Debug.WriteLine(LeaveSystemMVC.Models.RandomPassword.Generate(7, 7));
     return(View());
 }