Пример #1
0
 public EmailAdmins()
 {
     // TODO: Get options from configuration/services.
     options = new EmailAdminsOptions
     {
         AdminEmails             = "*****@*****.**",
         DeliveryMethod          = SmtpDeliveryMethod.SpecifiedPickupDirectory,
         PickupDirectoryLocation = @"C:\Development\SmtpPickupDirectory",
         AckUrlFormat            = "https://localhost:44389/Home/Ack/{0}",
     };
 }
Пример #2
0
        public EmailAdmins()
        {
            // TODO: Get options from configuration/services.
            options = new EmailAdminsOptions
            {
                AdminEmails             = "*****@*****.**",
                DeliveryMethod          = SmtpDeliveryMethod.SpecifiedPickupDirectory,
                PickupDirectoryLocation = @"C:\Development\SmtpPickupDirectory",
                AckUrlFormat            = "https://localhost:44389/Home/Ack/{0}",
            };

            // Ensure the email pickup folder exists just for testing purposes
            Directory.CreateDirectory(options.PickupDirectoryLocation);
        }