Use monolith SMTP credentials for Woo Manager outbound mail.
Deploy Ladill Woo Manager / deploy (push) Successful in 1m23s

Mirror platform mail.php scheme normalization and sync MAIL_* transport vars from ladill.com shared .env on each deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-07 03:03:11 +00:00
co-authored by Cursor
parent cfdc8c7c09
commit dabc968fb9
4 changed files with 63 additions and 1 deletions
+15 -1
View File
@@ -1,5 +1,19 @@
<?php
// Normalise MAIL_SCHEME / MAIL_ENCRYPTION into a valid Symfony mailer scheme
// (only "smtp"/"smtps" are valid). Mirrors the monolith so the same env works:
// legacy MAIL_ENCRYPTION=tls or a stray MAIL_SCHEME=tls → null (STARTTLS on 587).
$mailScheme = strtolower(trim((string) env('MAIL_SCHEME', '')));
$mailEncryption = strtolower(trim((string) env('MAIL_ENCRYPTION', '')));
$smtpScheme = match (true) {
in_array($mailScheme, ['smtp', 'smtps'], true) => $mailScheme,
$mailScheme !== '' => null,
in_array($mailEncryption, ['ssl', 'smtps'], true) => 'smtps',
in_array($mailEncryption, ['tls', 'starttls', 'smtp'], true) => 'smtp',
default => null,
};
return [
/*
@@ -39,7 +53,7 @@ return [
'smtp' => [
'transport' => 'smtp',
'scheme' => env('MAIL_SCHEME'),
'scheme' => $smtpScheme,
'url' => env('MAIL_URL'),
'host' => env('MAIL_HOST', '127.0.0.1'),
'port' => env('MAIL_PORT', 2525),