Improve selfhost email debugging
This commit is contained in:
parent
bb127743da
commit
cbc40d9542
1 changed files with 4 additions and 1 deletions
|
|
@ -40,7 +40,10 @@ class Mailer
|
|||
$toEmail = strtolower($toEmail);
|
||||
$replyEmail = $fromEmail;
|
||||
$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
|
||||
if (! empty($data['fromEmail'])) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue