2025-05-06 06:45:49 +00:00
|
|
|
|
using Volo.Abp.Emailing;
|
|
|
|
|
|
|
2025-11-11 19:49:52 +00:00
|
|
|
|
namespace Erp.Sender.Mail;
|
2025-05-06 06:45:49 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Used to send emails with additional parameters.
|
|
|
|
|
|
/// </summary>
|
2025-11-11 19:49:52 +00:00
|
|
|
|
public interface IErpEmailSender : IEmailSender
|
2025-05-06 06:45:49 +00:00
|
|
|
|
{
|
2025-11-11 19:49:52 +00:00
|
|
|
|
//ErpEmailTemplate template
|
2025-05-06 06:45:49 +00:00
|
|
|
|
Task<EmailSendResult> SendEmailAsync(
|
|
|
|
|
|
string to,
|
|
|
|
|
|
KeyValuePair<string, string>? sender,
|
|
|
|
|
|
dynamic? @params,
|
|
|
|
|
|
string textContent,
|
|
|
|
|
|
string? subject = null,
|
|
|
|
|
|
Dictionary<string, string>? attachments = null,
|
|
|
|
|
|
bool IsBodyHtml = false);
|
|
|
|
|
|
Task<EmailSendResult> SendEmailAsync(
|
|
|
|
|
|
string[] to,
|
|
|
|
|
|
KeyValuePair<string, string>? sender,
|
|
|
|
|
|
dynamic? @params,
|
|
|
|
|
|
string textContent,
|
|
|
|
|
|
string? subject = null,
|
|
|
|
|
|
Dictionary<string, string>? attachments = null,
|
|
|
|
|
|
bool IsBodyHtml = false);
|
|
|
|
|
|
Task QueueEmailAsync(
|
|
|
|
|
|
string to,
|
|
|
|
|
|
KeyValuePair<string, string>? sender,
|
|
|
|
|
|
dynamic? @params,
|
|
|
|
|
|
string textContent,
|
|
|
|
|
|
string? subject = null,
|
|
|
|
|
|
Dictionary<string, string>? attachments = null,
|
|
|
|
|
|
bool IsBodyHtml = false);
|
|
|
|
|
|
Task QueueEmailAsync(
|
|
|
|
|
|
string[] to,
|
|
|
|
|
|
KeyValuePair<string, string>? sender,
|
|
|
|
|
|
dynamic? @params,
|
|
|
|
|
|
string textContent,
|
|
|
|
|
|
string? subject = null,
|
|
|
|
|
|
Dictionary<string, string>? attachments = null,
|
|
|
|
|
|
bool IsBodyHtml = false);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2025-11-11 19:49:52 +00:00
|
|
|
|
|