This commit is contained in:
Andras Bacsai 2023-11-03 14:39:11 +01:00
parent 0a83ed82fa
commit d31683df61

View File

@ -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