Foxnouns.NET/Foxnouns.Backend/Mailables/AccountCreationMailable.cs

18 lines
471 B
C#
Raw Normal View History

using Coravel.Mailer.Mail;
namespace Foxnouns.Backend.Mailables;
public class AccountCreationMailable(Config config, AccountCreationMailableView view) : Mailable<AccountCreationMailableView>
{
public override void Build()
{
To(view.To)
.From(config.EmailAuth.From!)
.View("~/Views/Mail/AccountCreation.cshtml", view);
}
}
2024-09-10 02:39:07 +02:00
public class AccountCreationMailableView : BaseView
{
public required string Code { get; init; }
}