Service that sends emails via SMTP using provided configuration.
// Source: https://github.com/Azure/Commercial-Marketplace-SaaS-Accelerator | License: MIT | Copyright Microsoft Corporation
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using System.Net;
using System.Net.Mail;
using Marketplace.SaaS.Accelerator.DataAccess.Contracts;
using Marketplace.SaaS.Accelerator.Services.Contracts;
using Marketplace.SaaS.Accelerator.Services.Models;
using Marketplace.SaaS.Accelerator.Services.Utilities;
namespace Marketplace.SaaS.Accelerator.Services.Services;
/// <summary>
/// Service to send emails using SMTP settings.
/// </summary>
/// <seealso cref="IEmailService" />
public class SMTPEmailService : IEmailService
{
/// <summary>
/// The application configuration repository.
/// </summary>
private readonly IAppl
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key