示例#1
0
        /// <summary>
        /// The default constructor is using gmail, [email protected] (password: AnnieEllement)
        /// </summary>
        public EmailNotifier()
        {
            //These are the default values being used (also for testing purposes)
            //host = "smtp.gmail.com";
            //port = 587;
            //enableSSL = true;
            //useDefaultCredentials = false;
            //username = "******";
            //password = "******";


            //Create the smtp client with info given above
            _smtpClient = new InjectableSmptClient();
            //SetSection();
        }
示例#2
0
 /// <summary>
 /// This version is used when you want to define the SMTP info from another source outside of gmail
 /// </summary>
 /// <param name="smtpClient"></param>
 public EmailNotifier(IInjectableSmtpClient smtpClient)
 {
     _smtpClient = smtpClient;
     //SetSection();
 }