2024-09-09 14:37:59 +02:00
|
|
|
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
|
2024-09-09 14:37:59 +02:00
|
|
|
{
|
|
|
|
public required string Code { get; init; }
|
|
|
|
}
|