From 1bb3e0344b7d5b0360335747e88c1c7714660b88 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 18 Jun 2019 18:49:08 -0600 Subject: [PATCH] Update ContactPipeline --- app/Jobs/ContactPipeline/ContactPipeline.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/ContactPipeline/ContactPipeline.php b/app/Jobs/ContactPipeline/ContactPipeline.php index a3c9654e8..635367051 100644 --- a/app/Jobs/ContactPipeline/ContactPipeline.php +++ b/app/Jobs/ContactPipeline/ContactPipeline.php @@ -35,10 +35,10 @@ class ContactPipeline implements ShouldQueue public function handle() { $contact = $this->contact; - if(config('instance.contact.enabled') == false || $this->read_at !== null) { + $email = config('instance.email'); + if(config('instance.contact.enabled') == false || $contact->read_at !== null || filter_var($email, FILTER_VALIDATE_EMAIL) == false) { return; } - $email = config('instance.email'); Mail::to($email)->send(new ContactAdmin($contact)); } }