Include IP in error message.

This commit is contained in:
James Cole
2020-10-23 12:30:12 +02:00
parent 58bb5eaeae
commit 171f8c5848

View File

@@ -76,7 +76,7 @@ class MailError extends Job implements ShouldQueue
$args = $this->exception; $args = $this->exception;
$args['loggedIn'] = $this->userData['id'] > 0; $args['loggedIn'] = $this->userData['id'] > 0;
$args['user'] = $this->userData; $args['user'] = $this->userData;
$args['ip'] = $this->ipAddress; $args['ipAddress'] = $this->ipAddress;
if ($this->attempts() < 3) { if ($this->attempts() < 3) {
try { try {
Mail::send( Mail::send(
@@ -84,7 +84,7 @@ class MailError extends Job implements ShouldQueue
$args, $args,
function (Message $message) use ($email) { function (Message $message) use ($email) {
if ('mail@example.com' !== $email) { if ('mail@example.com' !== $email) {
$message->to($email, $email)->subject((string) trans('email.error_subject')); $message->to($email, $email)->subject((string)trans('email.error_subject'));
} }
} }
); );