예제 #1
0
        static void Main()
        {
            IKernel kernel = new StandardKernel();
            kernel.Load(Assembly.GetExecutingAssembly());
            IMailSender mailSender = kernel.Get<IMailSender>();

            FormHandler form = new FormHandler(mailSender);
            form.Handle("*****@*****.**");

            Console.Read();
        }
예제 #2
0
 public void EnviaMail()
 {
     FormHandler form = new FormHandler(_mailSender);
     form.Handle("*****@*****.**");
 }