add family logic
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Families;
|
||||
|
||||
use App\Services\Email\EmailDispatchService;
|
||||
|
||||
class FamilyNotificationService
|
||||
{
|
||||
public function __construct(private EmailDispatchService $dispatch)
|
||||
{
|
||||
}
|
||||
|
||||
public function sendComposeEmail(
|
||||
string $recipient,
|
||||
string $subject,
|
||||
string $htmlMessage,
|
||||
?string $profile = null,
|
||||
?string $replyToEmail = null,
|
||||
?string $replyToName = null
|
||||
): bool {
|
||||
return $this->dispatch->send(
|
||||
$recipient,
|
||||
$subject,
|
||||
$htmlMessage,
|
||||
$profile,
|
||||
$replyToEmail,
|
||||
$replyToName
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user