mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Improve selfhost email debugging
This commit is contained in:
parent
bb127743da
commit
cbc40d9542
@ -40,7 +40,10 @@ class Mailer
|
|||||||
$toEmail = strtolower($toEmail);
|
$toEmail = strtolower($toEmail);
|
||||||
$replyEmail = $fromEmail;
|
$replyEmail = $fromEmail;
|
||||||
$fromEmail = CONTACT_EMAIL;
|
$fromEmail = CONTACT_EMAIL;
|
||||||
//\Log::info("{$toEmail} | {$replyEmail} | $fromEmail");
|
|
||||||
|
if (Utils::isSelfHost() && config('app.debug')) {
|
||||||
|
\Log::info("Sending email - To: {$toEmail} | Reply: {$replyEmail} | From: $fromEmail");
|
||||||
|
}
|
||||||
|
|
||||||
// Optionally send for alternate domain
|
// Optionally send for alternate domain
|
||||||
if (! empty($data['fromEmail'])) {
|
if (! empty($data['fromEmail'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user