private EmailContent GetCreatePostEmailContent(string email, string alias, long postId, int?page, string subject, string postAlias) { EmailContent content = new EmailContent { Subject = ElementResource.ForumCreatePostEmailSubject, PlainTextBody = ElementResource.ForumCreatePostEmailPlainTextBody, HtmlBody = ElementResource.ForumCreatePostEmailHtmlBody }; IEnumerable <KeyValuePair <string, string> > substitutions = GetCreatePostSubstitutions(email, alias, postId, page, subject, postAlias); content.Subject = _stringService.SubstituteKeywords(content.Subject, substitutions, false); content.HtmlBody = _stringService.SubstituteKeywords(content.HtmlBody, substitutions, true); content.PlainTextBody = _stringService.SubstituteKeywords(content.PlainTextBody, substitutions, false); return(content); }
private EmailContent GetCreateUserEmailContent(long tenantId, string email, string alias, Token confirmToken) { EmailContent content = new EmailContent { Subject = AuthenticationResource.CreateUserEmailSubject, PlainTextBody = AuthenticationResource.CreateUserEmailPlainTextBody, HtmlBody = AuthenticationResource.CreateUserEmailHtmlBody }; IEnumerable <KeyValuePair <string, string> > substitutions = GetCreateUserEmailSubstitutions(tenantId, email, alias, confirmToken); content.Subject = _stringService.SubstituteKeywords(content.Subject, substitutions, false); content.HtmlBody = _stringService.SubstituteKeywords(content.HtmlBody, substitutions, true); content.PlainTextBody = _stringService.SubstituteKeywords(content.PlainTextBody, substitutions, false); return(content); }