Skip to content

Commit

Permalink
send mail through mailcoach
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Sep 6, 2024
1 parent 0c2b8d2 commit 45a6b5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
9 changes: 6 additions & 3 deletions app/Mail/LeakedLicenseKeyRegeneratedMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,25 @@
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Spatie\MailcoachMailer\Concerns\UsesMailcoachMail;

class LeakedLicenseKeyRegeneratedMail extends Mailable implements ShouldQueue
{
use Queueable;
use SerializesModels;
use UsesMailcoachMail;

public function __construct(
public License $license,
public string $foundOnUrl
) {
}

public function build()
public function build(): void
{
$this
->subject('We have revoked your leaked license key')
->markdown('mails.leakedLicenseKeyRegenerated');
->mailcoachMail('spatie.leaked-license-key', [
'url' => $this->foundOnUrl,
]);
}
}
14 changes: 0 additions & 14 deletions resources/views/mails/leakedLicenseKeyRegenerated.blade.php

This file was deleted.

0 comments on commit 45a6b5c

Please sign in to comment.