18 lines
No EOL
471 B
C#
18 lines
No EOL
471 B
C#
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);
|
|
}
|
|
}
|
|
|
|
public class AccountCreationMailableView : BaseView
|
|
{
|
|
public required string Code { get; init; }
|
|
} |