@trans_db('title', 'settings', 'Settings') - SMTP

Dashboard / Admin / @trans_db('title', 'settings', 'Settings') / SMTP

{{-- Alerte cu suport Dark Mode --}} @if (session('success')) @endif @if (session('error')) @endif @if ($errors->any()) @endif
{{-- Settings Sidebar Component --}} {{-- Main Content Area --}}
{{-- Card Status SMTP --}} @php $smtpEnabledValue = $settings->get('smtp')?->firstWhere('key', 'smtp_enabled')?->value ?? '0'; $smtpEnabled = $smtpEnabledValue === '1' || $smtpEnabledValue === 1 || $smtpEnabledValue === true; $smtpHost = $settings->get('smtp')?->firstWhere('key', 'smtp_host')?->value; $smtpPort = $settings->get('smtp')?->firstWhere('key', 'smtp_port')?->value ?? '587'; @endphp

Status SMTP

@if($smtpEnabled && $smtpHost)

Configurat: {{ $smtpHost }}:{{ $smtpPort }}

@elseif($smtpEnabled)

Activat dar neconfigurat complet

@else

SMTP dezactivat - email-urile nu vor fi trimise

@endif
{{-- Test Email Button --}}
{{-- Test Result Area --}}
{{-- Formular Principal --}}

Configurare SMTP

{{-- Indicator modificări nesalvate --}}
{{-- Presetări Provideri SMTP --}}

Selectează un provider pentru a completa automat setările de bază.

@csrf @method('PUT')
{{-- Toggle SMTP Enabled --}}
Activează SMTP

Când este dezactivat, email-urile nu vor fi trimise.

{{-- Row 1: Host & Port --}}
{{-- Row 2: Username & Password --}}

Pentru Gmail, folosește un App Password

{{-- Row 3: Encryption --}}
{{-- Separator --}}

Identitate Expeditor

{{-- Row 4: From Address & From Name --}}

Adresa de pe care se vor trimite email-urile

Numele afișat în inbox-ul destinatarului

{{-- Info Box - Ghid Configurare --}}

Ghid Configurare SMTP

{{-- Gmail --}}
Gmail Gmail
{{-- Office 365 --}}
Office Office 365
  • smtp.office365.com:587
  • TLS encryption
  • Email complet ca username
{{-- SendGrid --}}
SendGrid
  • smtp.sendgrid.net:587
  • Username: apikey
  • Password: API Key

Sfat: Pentru Gmail și Office 365, activează "Less secure apps" sau folosește App Passwords pentru autentificare sigură.

{{-- JavaScript --}}