@extends('layouts.app') @section('title', 'Mail SMTP — ' . config('app.name')) @section('content')

Mail SMTP & Templates

Konfigurasi pengirim support@geonet.co.id dan template email transaksional.

@include('partials.flash')

SMTP Settings

@csrf @method('PUT')

Test SMTP (plain)

Kirim email teks biasa untuk memastikan koneksi SMTP berjalan.

@csrf

Email Templates

@php $templateInfo = [ 'password_reset' => [ 'badge' => 'Reset Password', 'badge_class' => 'bg-violet-950 text-violet-300 border-violet-800', 'when' => 'Dikirim saat user meminta reset password (forgot password) atau admin mengirim link reset.', ], 'password_changed' => [ 'badge' => 'Password Diubah', 'badge_class' => 'bg-amber-950 text-amber-300 border-amber-800', 'when' => 'Dikirim otomatis setelah password LDAP berhasil diubah (admin reset atau self-service reset).', ], ]; @endphp @foreach ($templates as $template) @php $info = $templateInfo[$template->slug] ?? null; @endphp

{{ $template->name }}

@if ($info) {{ $info['badge'] }} @endif
{{ $template->slug }}
@if ($info)
Kapan dikirim: {{ $info['when'] }}
@endif @if ($template->description)

Placeholder: {{ $template->description }}

@endif
@csrf @method('PUT')
@if (in_array($template->slug, ['password_reset', 'password_changed'], true))

Test Send Template

Kirim preview template yang sudah disimpan (simpan perubahan dulu). Data contoh: user preview.user.

@csrf
@endif
@endforeach
@endsection