mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-10-07 16:18:57 +00:00
27 lines
717 B
C#
27 lines
717 B
C#
|
|
using ProposalSystem.Application.Interfaces;
|
||
|
|
|
||
|
|
namespace ProposalSystem.Api.Services;
|
||
|
|
|
||
|
|
public class DevEmailService : IEmailService
|
||
|
|
{
|
||
|
|
private readonly ILogger<DevEmailService> _logger;
|
||
|
|
|
||
|
|
public DevEmailService(ILogger<DevEmailService> logger)
|
||
|
|
{
|
||
|
|
_logger = logger;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Task SendProposalDeliveryAsync(
|
||
|
|
string toEmail,
|
||
|
|
string proposalNumber,
|
||
|
|
string customerName,
|
||
|
|
string pdfUrl,
|
||
|
|
CancellationToken ct = default)
|
||
|
|
{
|
||
|
|
_logger.LogInformation(
|
||
|
|
"Dev mode - skipping email delivery: proposal {ProposalNumber} to {Recipient}, PDF link: {PdfUrl}",
|
||
|
|
proposalNumber, toEmail, pdfUrl);
|
||
|
|
return Task.CompletedTask;
|
||
|
|
}
|
||
|
|
}
|