2024-09-09 14:37:59 +02:00
|
|
|
using Coravel.Mailer.Mail;
|
|
|
|
|
|
|
|
namespace Foxnouns.Backend.Mailables;
|
|
|
|
|
2024-09-25 19:48:05 +02:00
|
|
|
public class AccountCreationMailable(Config config, AccountCreationMailableView view)
|
|
|
|
: Mailable<AccountCreationMailableView>
|
2024-09-09 14:37:59 +02:00
|
|
|
{
|
|
|
|
public override void Build()
|
|
|
|
{
|
2024-10-02 00:28:07 +02:00
|
|
|
To(view.To).From(config.EmailAuth.From!).View("~/Views/Mail/AccountCreation.cshtml", view);
|
2024-09-09 14:37:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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; }
|
2024-10-02 00:28:07 +02:00
|
|
|
}
|