Exemplo n.º 1
0
		private EmailMessage GetEmailMessage(
			long? userId,
			string email,
			EmailTemplateLocalizationData localizationData,
			FileHolder[] files)
		{
			return new EmailMessage(localizationData.Subject, localizationData.Body, _defaultFrom, email, userId)
			{
				Files = files,
				IsBodyHtml = localizationData.IsBodyHtml
			};
		}
Exemplo n.º 2
0
		private EmailMessage GetEmailMessage(
			string email,
			string culture,
			EmailTemplateLocalizationData localization,
			ApplicationData application,
			byte[] data,
			EventType type,
			FileHolder[] files,
			long? emailSenderUserId)
		{
			var subject = _textBuilder.GetText(localization.Subject, culture, type, application, data);
			var body = _textBuilder.GetText(localization.Body, culture, type, application, data);

			return new EmailMessage(subject, body, _defaultFrom, email, emailSenderUserId)
			{
				IsBodyHtml = localization.IsBodyHtml,
				Files = files
			};
		}