Table of Contents

Interface ISmtpService

Namespace
FishMMO.Server.Core.Smtp
Assembly
FishMMO.Server.dll

Abstraction over SMTP email delivery. Implementations can use System.Net.Mail.SmtpClient, a third-party library, or an external API.

public interface ISmtpService

Methods

SendEmailAsync(string, string, string)

Sends an email asynchronously.

Task<bool> SendEmailAsync(string to, string subject, string body)

Parameters

to string

Recipient email address.

subject string

Email subject line.

body string

Email body (HTML or plain-text).

Returns

Task<bool>

True if the email was accepted for delivery.