diff --git a/app/Notifications/Email/InvalidEmail.php b/app/Notifications/Email/InvalidEmail.php
index f458c4f15..10a87cbcf 100644
--- a/app/Notifications/Email/InvalidEmail.php
+++ b/app/Notifications/Email/InvalidEmail.php
@@ -6,6 +6,7 @@ use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;
+use Illuminate\Support\HtmlString;
class InvalidEmail extends Notification implements ShouldQueue
{
@@ -54,8 +55,12 @@ class InvalidEmail extends Notification implements ShouldQueue
return (new MailMessage)
->subject(trans('notifications.email.invalid.title', ['type' => $this->type]))
- ->line(trans('notifications.email.invalid.description', ['email' => $this->email]))
- ->line($this->error)
+ ->line(new HtmlString('
'))
+ ->line(new HtmlString('
'))
+ ->line(new HtmlString(trans('notifications.email.invalid.description', ['email' => $this->email])))
+ ->line(new HtmlString('
'))
+ ->line(new HtmlString('
'))
+ ->line(new HtmlString('' . $this->error . ''))
->action(trans_choice('general.dashboards', 1), $dashboard_url);
}
diff --git a/resources/lang/en-GB/notifications.php b/resources/lang/en-GB/notifications.php
index b9013cdad..3b804df50 100644
--- a/resources/lang/en-GB/notifications.php
+++ b/resources/lang/en-GB/notifications.php
@@ -68,7 +68,7 @@ return [
'invalid' => [
'title' => 'Invalid :type Email',
- 'description' => ':email email address has been reported as invalid and the person has been disabled. Please check the following error message and fix the email address:',
+ 'description' => 'The :email email address has been reported as invalid, and the person has been disabled. Please check the following error message and fix the email address:',
],
@@ -191,7 +191,7 @@ return [
'invalid_email' => [
'title' => 'Invalid :type Email',
- 'description' => ':email email address has been reported as invalid and the person has been disabled. Please check and fix the email address.',
+ 'description' => 'The :email email address has been reported as invalid, and the person has been disabled. Please check and fix the email address.',
],