Skip to content

Commit

Permalink
Merge pull request #203 from dbarzin/dev
Browse files Browse the repository at this point in the history
fix unsedure mail sending
  • Loading branch information
dbarzin authored Oct 21, 2024
2 parents 2cb16df + ebab4fe commit 6d5519d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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
4 changes: 3 additions & 1 deletion app/Http/Controllers/ConfigurationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ public function save(Request $request)
$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

// Recipients
Expand Down

0 comments on commit 6d5519d

Please sign in to comment.