diff --git a/app/Jobs/ContactPipeline/ContactPipeline.php b/app/Jobs/ContactPipeline/ContactPipeline.php new file mode 100644 index 000000000..a3c9654e8 --- /dev/null +++ b/app/Jobs/ContactPipeline/ContactPipeline.php @@ -0,0 +1,44 @@ +contact = $contact; + } + + /** + * Execute the job. + * + * @return void + */ + public function handle() + { + $contact = $this->contact; + if(config('instance.contact.enabled') == false || $this->read_at !== null) { + return; + } + $email = config('instance.email'); + Mail::to($email)->send(new ContactAdmin($contact)); + } +}