Ejemplo n.º 1
0
        private void SetMethodToOutlook(Options opts = Options.NONE)
        {
            DateTime localDate     = DateTime.Now;
            string   email_body    = "Here is what you ordered. It's extra spciy, just like you like it....\n";
            string   email_subject = String.Format("{0} -- Results of Your Recent Order", localDate.ToString("en-us"));

            email_sender = new OutlookSender(email_body, email_subject);
        }
Ejemplo n.º 2
0
 private void SetMethodToSmtp(Options opts = Options.NONE)
 {
     //public SMTPSender(string email_from,string smtp_body, string subject_line,string server,string account_email,string password, Options opts=Options.NONE)
     email_sender = new SMTPSender(smtp_address, smtp_email_body, smtp_email_subject, smtp_server, smtp_account_email, smtp_password, opts);
 }
Ejemplo n.º 3
0
        //private readonly EmailConfig _emailConfig;

        public SignUpUserNewController(_7HillsDBContext context, IEmailSenderInterface emailSenderInterface)
        {
            _context = context;
            _emailSenderInterface = emailSenderInterface;
        }