diff --git a/.tinkerwell/snippets/SendEmail.php b/.tinkerwell/snippets/SendEmail.php index 2d08a8744..3b752bc04 100644 --- a/.tinkerwell/snippets/SendEmail.php +++ b/.tinkerwell/snippets/SendEmail.php @@ -4,11 +4,12 @@ * @description Send email to all users */ -use Illuminate\Notifications\Messages\MailMessage; +use App\Models\User; +use Illuminate\Support\Facades\Mail; set_transanctional_email_settings(); -$users = User::all(); +$users = User::whereEmail('andras.bacsai@gmail.com'); foreach ($users as $user) { Mail::send([], [], function ($message) use ($user) { $message