Esempio n. 1
0
 private void InternalConfigure(IPropertyReaderFactory readerFactory, ISmtpService smtpService, string host, int port, string username, string password, string to, string from,
                                string subjectValueToken, string bodyValueToken)
 {
     SmtpService = smtpService;
     SmtpService.Initialize(host, port, username, password);
     From          = from;
     To            = to;
     SubjectReader = readerFactory.CreateCombinedReader(subjectValueToken);
     BodyReader    = readerFactory.CreateCombinedReader(bodyValueToken);
 }
Esempio n. 2
0
 private void InternalConfigure(IPropertyReaderFactory readerFactory, ISmtpService smtpService, string host, int port, string username, string password, string to, string from,
                                string subjectValueToken, string bodyValueToken)
 {
     SmtpService = smtpService;
     SmtpService.Initialize(host, port, username, password);
     From = from;
     To = to;
     SubjectReader = readerFactory.CreateCombinedReader(subjectValueToken);
     BodyReader = readerFactory.CreateCombinedReader(bodyValueToken);
 }