@extends('layouts.app') @section('title', 'SMTP Config') @section('content') @php $config = $configs->first(); // since only one record per company @endphp

SMTP Configuration SMTP Configuration Configure your SMTP server to allow the application to send emails using your own email provider. Enter your SMTP host, port, encryption, login credentials, and the email address used to send messages.

Connect your email server to send emails from your account.

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@if(($config->smtp_works ?? '') == 'Yes')

Connection Verified

Your SMTP settings are correctly configured and the system can send emails.

@elseif(($config->smtp_works ?? '') == 'No')

Connection Failed

The last test attempt failed. Please check your credentials and port settings.

@else

Not Verified

Configuration hasn't been tested yet. Save settings to trigger a test.

@endif
@csrf

Test SMTP Connection Test SMTP Connection Send a test email to verify that the application can connect to your SMTP server and send emails successfully. Enter a recipient email address and send a test message.

Make sure your SMTP settings are working correctly.

@csrf
@endsection