Try your search with a different keyword or use * as a wildcard.
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using MailKit.Net.Smtp;
using Nop.Core.Domain.Messages;
namespace Nop.Services.Messages;
///
/// SMTP Builder
///
public partial interface ISmtpBuilder
{
///
/// Create a new SMTP client for a specific email account
///
/// Email account to use. If null, then would be used EmailAccount by default
///
/// A task that represents the asynchronous operation
/// The task result contains the an SMTP client that can be used to send email messages
///
Task BuildAsync(EmailAccount emailAccount = null);
///
/// Verifies the remote Secure Sockets Layer (SSL) certificate used for authentication.
///
/// An object that contains state information for this validation.
/// The certificate used to authenticate the remote party.
/// The chain of certificate authorities associated with the remote certificate.
/// One or more errors associated with the remote certificate.
/// A System.Boolean value that determines whether the specified certificate is accepted for authentication
bool ValidateServerCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors);
}