PATH:
home
/
rwabteecom
/
public_html
/
app
/
Jobs
/
Editing: SendEmailJob.php
<?php namespace App\Jobs; use App\Mail\ContactUsMail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\Mail; class SendEmailJob implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; protected $input; protected $email; /** * Create a new job instance. * * @return void */ public function __construct($input, $email) { $this->input = $input; $this->email = $email; } /** * Execute the job. */ public function handle(): void { $mail = new ContactUsMail($this->input, $this->email); Mail::to($this->email)->send($mail); } }
SAVE
CANCEL