当前位置: 首页>>代码示例>>C#>>正文


C# IEmailSender类代码示例

本文整理汇总了C#中IEmailSender的典型用法代码示例。如果您正苦于以下问题:C# IEmailSender类的具体用法?C# IEmailSender怎么用?C# IEmailSender使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IEmailSender类属于命名空间,在下文中一共展示了IEmailSender类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SendTaskAssignedEmail

 public static void SendTaskAssignedEmail(TaskAssignedEmailViewModel viewModel, IEmailSender emailSender, bool isActionTask = false)
 {
     var email = (isActionTask) ? 
         new MailerController().ActionTaskAssigned(viewModel) :
         new MailerController().TaskAssigned(viewModel);
     emailSender.Send(email);
 }
开发者ID:mnasif786,项目名称:Business-Safe,代码行数:7,代码来源:SendTaskAssignedEmailHelper.cs

示例2: EmailTemplate

		public EmailTemplate(IEmailSender emailSender, ITemplateEngine templateEngine, string from)
		{
			this.emailSender = emailSender;
			this.templateEngine = templateEngine;

			this.From = from;
		}
开发者ID:elementar,项目名称:Suprifattus.Util,代码行数:7,代码来源:EmailTemplate.cs

示例3: QueuedMessagesSendTask

 public QueuedMessagesSendTask(IQueuedEmailService queuedEmailService,
     IEmailSender emailSender, ILogger logger)
 {
     this._queuedEmailService = queuedEmailService;
     this._emailSender = emailSender;
     this._logger = logger;
 }
开发者ID:jianghaihui,项目名称:nopCommerce,代码行数:7,代码来源:QueuedMessagesSendTask.cs

示例4: PasswordRecoveryByRecoveryClue

 public PasswordRecoveryByRecoveryClue(IEmailSender eMailSender, ISystemContext systemContext, ICryptoProvider cryptoProvider, IConfigurationProvider configProvider)
 {
     this.eMailSender = eMailSender;
     this.systemContext = systemContext;
     this.cryptoProvider = cryptoProvider;
     this.configProvider = configProvider;
 }
开发者ID:jesusmoreno85,项目名称:LoginTestApp,代码行数:7,代码来源:PasswordRecoveryByRecoveryClue.cs

示例5: UserService

 public UserService(IRepository<PersonalInformation, long> personalInfo, IEmailSender emailSender, IAsyncRunner iAsyhcRunner, HttpContextBase httpContextBase)
 {
     this._personalInformation = personalInfo;
     this._EmailSender = emailSender;
     this._IAsyncRunner = iAsyhcRunner;
     this._IHttpContextBase = httpContextBase;
 }
开发者ID:nisun,项目名称:tel,代码行数:7,代码来源:UserService.cs

示例6: SendQueuedMessagesTask

 public SendQueuedMessagesTask(ISession session, IEmailSender emailSender, SiteSettings siteSettings,Site site)
 {
     _session = session;
     _emailSender = emailSender;
     _siteSettings = siteSettings;
     _site = site;
 }
开发者ID:neozhu,项目名称:MrCMS,代码行数:7,代码来源:SendQueuedMessagesTask.cs

示例7: SendInvitation

        //Add an entry in the ACL, and send an invitation email
        public void SendInvitation(string email, Guid ProjectID, UserType userType, IEmailSender emailSender)
        {
            //Database access
            var db = new ApplicationDBContext();

            //make sure this isnt a duplicate
            if (db.UsersAccessProjects.Where(acl => acl.Email == email && acl.ProjectID == ProjectID).Count() == 0)
            {
                //Working with ACL
                var acl = new UsersAccessProjects();
                acl.Email = email;
                acl.invitationAccepted = false;
                acl.ProjectID = ProjectID;
                acl.UserID = null;

                //Save the ACL entry
                db.UsersAccessProjects.Add(acl);
                db.SaveChanges();

                //build an invitaion email
                string body;
                body = "You have been invited to a new project.\n";
                body += "Click the link to accept the invitation.\n";
                body += "http://northcarolinataxrecoverycalculator.apphb.com/Project/AcceptInvite/" + acl.ID;

                //send an invitaion email
                emailSender.SendMail(email, "You have been invited to a project", body);
            }
        }
开发者ID:kevinhicks,项目名称:NorthCarolinaTaxRecoveryCalculator,代码行数:30,代码来源:AccountServices.cs

示例8: OrderProcessor

 public OrderProcessor(IUnitOfWork unitOfWork, IEmailSender emailSender, IEmailGenerator emailGenerator, ITotalPriceCalculator totalPriceCalculator)
 {
     _unitOfWork = unitOfWork;
     _emailSender = emailSender;
     _emailGenerator = emailGenerator;
     _totalPriceCalculator = totalPriceCalculator;
 }
开发者ID:jakubka,项目名称:3whisky,代码行数:7,代码来源:OrderProcessor.cs

示例9: UserController

 public UserController(SignInManager<ChirpUser> a_signInManager, UserManager<ChirpUser> a_userManager, ILogger<UserController> a_logger, IEmailSender a_emailSender)
 {
     m_signInManager = a_signInManager;
     m_userManager = a_userManager;
     m_logger = a_logger;
     m_emailSender = a_emailSender;
 }
开发者ID:SteveF92,项目名称:Chirp,代码行数:7,代码来源:UserController.cs

示例10: SimpleNewsletterService

		public SimpleNewsletterService(Type sometype, IEmailSender sender, ITemplateEngine templateEngine)
		{
			if (sometype == null) throw new ArgumentNullException("sometype");

			_sender = sender;
			_templateEngine = templateEngine;
		}
开发者ID:ralescano,项目名称:castle,代码行数:7,代码来源:SimpleNewsletterService.cs

示例11: SiteController

 public SiteController(UserManager<ApplicationUser> userManager, IEmailSender emailSender, IAllReadyDataAccess dataAccess, ILogger<SiteController> logger)
 {
     _userManager = userManager;
     _emailSender = emailSender;
     _dataAccess = dataAccess;
     _logger = logger;
 }
开发者ID:teopenna,项目名称:allReady,代码行数:7,代码来源:SiteAdminController.cs

示例12: PasswordRecoveryByResetLink

 public PasswordRecoveryByResetLink(IAccountContext accountContext, IEmailSender eMailSender, ISystemContext systemContext, IConfigurationProvider configProvider)
 {
     this.accountContext = accountContext;
     this.eMailSender = eMailSender;
     this.systemContext = systemContext;
     this.configProvider = configProvider;
 }
开发者ID:jesusmoreno85,项目名称:LoginTestApp,代码行数:7,代码来源:PasswordRecoveryByResetLink.cs

示例13: AccountService

 public AccountService(IMapper mapper, IEmailSender messageService, IHttpContextAccessor accessor, IUserRepository userRepository)
 {
     _mapper = mapper;
     _messageService = messageService;
     _accessor = accessor;
     _userRepository = userRepository;
 }
开发者ID:parys,项目名称:MyLiverpool,代码行数:7,代码来源:AccountService.cs

示例14: UserEmailer

 public UserEmailer(IEmailTemplateProvider emailTemplateProvider, IEmailSender emailSender, IWebUrlService webUrlService, IRepository<Tenant> tenantRepository)
 {
     _emailTemplateProvider = emailTemplateProvider;
     _emailSender = emailSender;
     _webUrlService = webUrlService;
     _tenantRepository = tenantRepository;
 }
开发者ID:a9512648,项目名称:JYcms,代码行数:7,代码来源:UserEmailer.cs

示例15: UserService

 public UserService(IUserRepository userRepository, ICountryRepository countryRepository,
     IEmailSender emailSender, ISmsSender smsSender)
 {
     this.userRepository = userRepository;
     this.countryRepository = countryRepository;
     this.emailSender = emailSender;
     this.smsSender = smsSender;
 }
开发者ID:mustee,项目名称:Voting,代码行数:8,代码来源:UserService.cs


注:本文中的IEmailSender类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。