feat: add domain_deleted notif

This commit is contained in:
Maël Gangloff
2025-01-02 18:08:51 +01:00
parent 0761e7dce8
commit e97cb95637
7 changed files with 92 additions and 4 deletions

View File

@@ -48,11 +48,13 @@ class DomainOrderNotification extends DomainWatchdogNotification
public function asEmailMessage(EmailRecipientInterface $recipient): EmailMessage
{
$ldhName = $this->domain->getLdhName();
return new EmailMessage((new TemplatedEmail())
->from($this->sender)
->to($recipient->getEmail())
->priority(Email::PRIORITY_HIGHEST)
->subject('A domain name has been ordered')
->subject("Domain name $ldhName has just been purchased")
->htmlTemplate('emails/success/domain_ordered.html.twig')
->locale('en')
->context([