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,6 +67,7 @@ class NewContact extends Notification
'email',
])) {
return (new MailMessage)
->salutation('Hi ' . $notifiable->name . ',')
->line('We\'ve received a new contact form submission in the StaffManagement app center.')
->line('This is what they sent: ')
->line('')
@@ -74,7 +75,7 @@ class NewContact extends Notification
->line('')
->line('This message was received from '.$this->message->get('ip').' and submitted by '.$this->message->get('email').'.')
->action('Sign in', url(route('login')))
->line('Thank you!');
->salutation('The team at ' . config('app.name'));
}
throw new \InvalidArgumentException('Invalid arguments supplied to NewContact!');