Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using Grand.Domain.Messages;
namespace Grand.Business.Core.Interfaces.Messages;
/// <summary>
/// Email sender
/// </summary>
public interface IEmailSender
{
/// <summary>
/// Sends an email
/// </summary>
/// <param name="emailAccount">Email account to use</param>
/// <param name="subject">Subject</param>
/// <param name="body">Body</param>
/// <param name="fromAddress">From address</param>
/// <param name="fromName">From display name</param>
/// <param name="toAddress">To address</param>
/// <param name="toName">To display name</param>
/// <param name="replyToAddress">ReplyTo address</param>
/// <param name="replyToName">ReplyTo display name</param>
/// <param name="bcc">BCC addresses list</param>
/// <param name="cc">CC addresses ist</param>
/// <param name="attachmentFilePath">Attachment file path</param>
/// <param name="attachmentFileName">
/// Attachment file name. If specified, then this file name will be sent to a recipient.
/// Otherwise, "AttachmentFilePath" name will be used.
/// </param>
/// <param name="attachedDownloads">Attachments download ID (another attachments)</param>
Task SendEmail(EmailAccount emailAccount, string subject, string body,
string fromAddress, string fromName, string toAddress, string toName,
string replyToAddress = null, string replyToName = null,
IEnumerable<string> bcc = null, IEnumerable<string> cc = null,
string attachmentFilePath = null, string attachmentFileName = null,
IEnumerable<string> attachedDownloads = null);
}