• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IEmailSender类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: EmailSubsystem

        public EmailSubsystem(IEmailTemplateEngine templateEngine, IEmailSender sender)
        {
            Invariant.IsNotNull(templateEngine, "templateEngine");
            Invariant.IsNotNull(sender, "sender");

            TemplateEngine = templateEngine;
            Sender = sender;
        }
开发者ID:NickJosevski,项目名称:mailzor,代码行数:8,代码来源:EmailSubSystem.cs


示例17: EmailService

 public EmailService(ILogger logger, IEmailSender emailSender, ITemplateParserService emailTemplateParserService, string bccEmailAddress, string fromEmailAddress)
 {
     this.logger = logger;
     this.emailSender = emailSender;
     this.emailTemplateParserService = emailTemplateParserService;
     this.bccEmailAddress = bccEmailAddress;
     this.fromEmailAddress = fromEmailAddress;
 }
开发者ID:auxilium,项目名称:JelloScrum,代码行数:8,代码来源:EmailService.cs


示例18: IncomingMessageProcessor

 public IncomingMessageProcessor(IRepository repository, IMessageSender messageSender,
                                 ICaseRepository caseRepository, IEmailSender emailSender)
 {
     _repository = repository;
     _messageSender = messageSender;
     _caseRepository = caseRepository;
     _emailSender = emailSender;
 }
开发者ID:AcklenAvenue,项目名称:AutomatedCaseworker,代码行数:8,代码来源:IncomingMessageProcessor.cs


示例19: EmailSenderWorker

        public EmailSenderWorker(IEmailQueue emailQueue, IEmailSender emailSender)
        {
            Guard.NotNull(emailQueue, nameof(emailQueue));
            Guard.NotNull(emailSender, nameof(emailSender));

            this._emailQueue = emailQueue;
            this._emailSender = emailSender;
        }
开发者ID:LeagueLogbook,项目名称:Logbook,代码行数:8,代码来源:EmailSenderWorker.cs


示例20: EmailService

 public EmailService(ApplicationSettings applicationSettings,
                     IEmailTemplateEngine templateEngine,
                     IEmailSender sender)
 {
     _applicationSettings = applicationSettings;
     _templateEngine = templateEngine;
     _sender = sender;
 }
开发者ID:QuinntyneBrown,项目名称:JabbR,代码行数:8,代码来源:EmailService.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IEmailService类代码示例发布时间:2022-05-24
下一篇:
C# IEmailAccountService类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap