Improve selfhost email debugging

This commit is contained in:
Hillel Coren 2018-04-09 22:50:50 +03:00
parent bb127743da
commit cbc40d9542

View File

@ -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'])) {