Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Latest commit

 

History

History
22 lines (19 loc) · 605 Bytes

File metadata and controls

22 lines (19 loc) · 605 Bytes

InfDev.Extensions.Email.Abstractions

Abstract mail service.

    public interface ISmtpService
    {
        /// <summary>
        /// Sends the specified message to an SMTP server for delivery.
        /// </summary>
        Task<SmtpResult> SendAsync(MailMessage message);

        /// <summary>
        /// Create a default email message
        /// </summary>
        /// <returns>MailMessage</returns>
        /// <remarks>
        ///Central definition capability: To, Cc, Bcc, IsBodyHtml, Subject prefix
        /// </remarks>
        MailMessage CreateDefaultMessage();
    }