Improve transactional emails

This commit is contained in:
2022-02-10 15:45:22 +00:00
parent 127c972304
commit 5e2eabac0c
16 changed files with 134 additions and 45 deletions

View File

@@ -67,12 +67,13 @@ class UserBanned extends Notification implements ShouldQueue
public function toMail($notifiable)
{
return (new MailMessage)
->salutation('Hi ' . $notifiable->name . ',')
->from(config('notification.sender.address'), config('notification.sender.name'))
->line('Hello, ')
->line('Moderators have just banned user '.$this->user->name.' for '.$this->ban->reason)
->line('This ban will remain in effect until '.$this->ban->bannedUntil.'.')
->action('View profile', url(route('showSingleProfile', ['user' => $this->user->id])))
->line('Thank you!');
->salutation('The team at ' . config('app.name'));
}
/**