Skip to content

Commit

Permalink
fix secure mail send
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Oct 21, 2024
1 parent 0a47988 commit ebab4fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Console/Commands/SendNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public function handle()
$mail->SMTPAuth = env('MAIL_AUTH'); // Enable SMTP authentication
$mail->Username = env('MAIL_USERNAME'); // SMTP username
$mail->Password = env('MAIL_PASSWORD'); // SMTP password
$mail->SMTPSecure = env('MAIL_SMTPSECURE'); // Enable TLS encryption, `ssl` also accepted
$mail->SMTPSecure = env('MAIL_SMTPSECURE',false); // Enable TLS encryption, `ssl` also accepted
if ($mail->SMTPSecure==false)
$mail->SMTPAutoTLS=false;
$mail->Port = env('MAIL_PORT'); // TCP port to connect to

// Loop on all users
Expand Down

0 comments on commit ebab4fe

Please sign in to comment.