public EmailFriendController(
     ITextTranslator textTranslator,
     ISiteRootContext siteRootContext,
     IEmailFactory emailFactory,
     IEmailSender emailSender,
     IHtmlEmailTemplateFactory htmlEmailTemplateFactory,
     ISiteSettings siteSettings,
     ILog logger,
     IGlobalSitecoreService globalService,
     IArticleSearch articleSearch,
     IArticleService articleService,
     IRecaptchaService recaptchaService)
 {
     EmailSender = emailSender;
     HtmlEmailTemplateFactory = htmlEmailTemplateFactory;
     TextTranslator           = textTranslator;
     SiteRootContext          = siteRootContext;
     EmailFactory             = emailFactory;
     SiteSettings             = siteSettings;
     _logger          = logger;
     GlobalService    = globalService;
     ArticleSearch    = articleSearch;
     ArticleService   = articleService;
     RecaptchaService = recaptchaService;
 }
Beispiel #2
0
 public BaseHtmlEmailFactory(
     ISitecoreContext sitecoreContext,
     IHtmlEmailTemplateFactory htmlEmailTemplateFactory,
     IEmailFactory emailFactory,
     IGlobalSitecoreService globalService,
     ISiteSettings siteSettings)
 {
     SitecoreContext          = sitecoreContext;
     HtmlEmailTemplateFactory = htmlEmailTemplateFactory;
     EmailFactory             = emailFactory;
     GlobalService            = globalService;
     SiteSettings             = siteSettings;
 }
Beispiel #3
0
        //protected readonly ISiteRootContext _siteRootContext;

        public EmailUtil(
            ArticleUtil articleUtil,
            Func <string, ISitecoreService>
            sitecoreFactory,
            IEmailSender emailSender,
            IHtmlEmailTemplateFactory htmlEmailTemplateFactory,
            ILogWrapper logger,
            ISitePublicationWorkflow siteWorkflow)
        {
            EmailSender              = emailSender;
            _articleUtil             = articleUtil;
            _service                 = sitecoreFactory(Constants.MasterDb);
            HtmlEmailTemplateFactory = htmlEmailTemplateFactory;
            Logger        = logger;
            _siteWorkflow = siteWorkflow;
            // _siteRootContext = siteRootContext;
        }
 public WebUserResetPasswordEmailFactory(
     ITextTranslator textTranslator,
     ISitecoreContext sitecoreContext,
     IFindUserProfileByUsername findUserProfile,
     IWebUserResetPasswordUrlFactory urlFactory,
     IHtmlEmailTemplateFactory htmlEmailTemplateFactory,
     IBaseHtmlEmailFactory emailFactory,
     ISiteSettings siteSettings)
 {
     TextTranslator           = textTranslator;
     SitecoreContext          = sitecoreContext;
     FindUserProfile          = findUserProfile;
     UrlFactory               = urlFactory;
     HtmlEmailTemplateFactory = htmlEmailTemplateFactory;
     EmailFactory             = emailFactory;
     SiteSettings             = siteSettings;
 }