📧 Mail Configuration Debug Panel

Complete diagnostic information for email system

⚠️ This page contains sensitive information. Do not share screenshots publicly.

✉️ Send Test Email

@csrf
@if(session('testResult'))

@if(session('testResult')['success']) Test Successful! @else Test Failed @endif

{{ session('testResult')['message'] }}

@if(!empty(session('testResult')['details']))

Step-by-Step Details:

@foreach(session('testResult')['details'] as $detail)
{{ $detail }}
@endforeach
@endif @if(!empty(session('testResult')['trace']))

Error Stack Trace:

{{ session('testResult')['trace'] }}
@endif
@endif

🖥️ Server Information

@foreach($serverInfo as $key => $value)
{{ $key }}:
{{ $value }}
@endforeach

🔌 SMTP Connection Test

Status: {{ $connectionTest['status'] }}

{{ $connectionTest['message'] }}

@if($connectionTest['status'] === 'SUCCESS')

✅ Your server can connect to the SMTP host on the specified port

@else

❌ Cannot establish connection to SMTP server

@endif

💾 Database Configuration (Options Table)

Mail Mailer:
{{ $dbConfig['mail_mailer'] ?? '❌ NOT SET' }}
Mail Host:
{{ $dbConfig['mail_host'] ?? '❌ NOT SET' }}
Mail Port:
{{ $dbConfig['mail_port'] ?? '❌ NOT SET' }}
Mail Username:
{{ $dbConfig['mail_username'] ?? '❌ NOT SET' }}
Mail Password:
{{ $dbConfig['mail_password'] ? '***SET*** (' . strlen($dbConfig['mail_password']) . ' characters)' : '❌ NOT SET' }}
Encryption:
{{ $dbConfig['mail_encryption'] ?? '❌ NOT SET' }}
From Address:
{{ $dbConfig['mail_from_address'] ?? '❌ NOT SET' }}
From Name:
{{ $dbConfig['mail_from_name'] ?? '❌ NOT SET' }}

⚙️ Laravel Config (Runtime)

@foreach($laravelConfig as $key => $value)
{{ ucfirst($key) }}:
{{ $value ?? 'NULL' }}
@endforeach

📝 .env File Configuration

@foreach($envConfig as $key => $value)
{{ $key }}:
{{ $value ?? 'NULL' }}
@endforeach

🔌 Required PHP Extensions

@foreach($extensions as $ext => $loaded)
{{ $ext }}
{{ $loaded ? '✅ Loaded' : '❌ Missing' }}
@endforeach

💡 Recommended Hostinger Settings

For Hostinger Email:

Host:
mail.erpbangalore.in
Port:
587
Encryption:
TLS
Username:
noreply@erpbangalore.in
From Email:
noreply@erpbangalore.in
@if($recentLogs)

📋 Recent Mail Logs (Last 50 entries)

{{ $recentLogs }}
@endif

🔍 Automatic Analysis

@if(empty($dbConfig['mail_host']))
❌ CRITICAL: Mail host is not configured
@endif @if(empty($dbConfig['mail_username']))
❌ CRITICAL: Mail username is not configured
@endif @if(empty($dbConfig['mail_password']))
❌ CRITICAL: Mail password is not configured
@endif @if(empty($dbConfig['mail_from_address']))
❌ CRITICAL: From address is not configured
@endif @if(!empty($dbConfig['mail_host']) && strpos($dbConfig['mail_host'], 'gmail.com') !== false)
⚠️ WARNING: You're using Gmail SMTP. Hostinger often blocks Gmail. Consider using Hostinger's mail server instead (mail.erpbangalore.in)
@endif @if(!empty($dbConfig['mail_username']) && !empty($dbConfig['mail_from_address']) && $dbConfig['mail_username'] !== $dbConfig['mail_from_address'])
⚠️ WARNING: Username and From Address don't match. This can cause authentication issues.
@endif @if($connectionTest['status'] === 'FAILED')
❌ ERROR: Cannot connect to SMTP server. Check if the host/port is correct and not blocked by firewall.
@endif @if(!$extensions['openssl'])
❌ CRITICAL: OpenSSL extension is missing. Required for secure SMTP connections.
@endif

🎯 Quick Actions

Go to Email Settings