2023-06-07 20:07:26 +00:00
|
|
|
<div>
|
2024-08-06 12:36:56 +00:00
|
|
|
<x-slot:title>
|
2024-11-03 20:45:17 +00:00
|
|
|
Transactional Email | Coolify
|
2024-12-11 10:57:56 +00:00
|
|
|
</x-slot>
|
|
|
|
|
<x-settings.navbar />
|
|
|
|
|
<form wire:submit='submit' class="flex flex-col gap-2 pb-4">
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
<h2>Transactional Email</h2>
|
|
|
|
|
<x-forms.button type="submit">
|
|
|
|
|
Save
|
|
|
|
|
</x-forms.button>
|
|
|
|
|
@if (is_transactional_emails_enabled() && auth()->user()->isAdminFromSession())
|
2024-12-09 13:39:50 +00:00
|
|
|
<x-modal-input buttonTitle="Send Test Email" title="Send Test Email">
|
|
|
|
|
<form wire:submit.prevent="sendTestEmail" class="flex flex-col w-full gap-2">
|
2024-12-11 10:57:56 +00:00
|
|
|
<x-forms.input wire:model="testEmailAddress" placeholder="test@example.com" id="testEmailAddress"
|
2025-03-28 21:18:07 +00:00
|
|
|
label="Recipient" required />
|
2024-12-09 13:39:50 +00:00
|
|
|
<x-forms.button type="submit" @click="modalOpen=false">
|
|
|
|
|
Send Email
|
|
|
|
|
</x-forms.button>
|
|
|
|
|
</form>
|
|
|
|
|
</x-modal-input>
|
2024-12-11 10:57:56 +00:00
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pb-4">Instance wide email settings for password resets, invitations, etc.</div>
|
2025-06-26 10:23:08 +00:00
|
|
|
<div class="flex gap-2">
|
2024-12-11 10:57:56 +00:00
|
|
|
<x-forms.input required id="smtpFromName" helper="Name used in emails." label="From Name" />
|
|
|
|
|
<x-forms.input required id="smtpFromAddress" helper="Email address used in emails." label="From Address" />
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<div class="flex flex-col gap-4">
|
2025-06-26 10:23:08 +00:00
|
|
|
<div class="p-4 border dark:border-coolgray-300 border-neutral-200">
|
2024-12-11 10:57:56 +00:00
|
|
|
<form wire:submit.prevent="submitSmtp" class="flex flex-col">
|
|
|
|
|
<div class="flex gap-2">
|
|
|
|
|
<h3>SMTP Server</h3>
|
|
|
|
|
<x-forms.button type="submit">
|
|
|
|
|
Save
|
|
|
|
|
</x-forms.button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="w-32">
|
|
|
|
|
<x-forms.checkbox instantSave='instantSave("SMTP")' id="smtpEnabled" label="Enabled" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex flex-col gap-4">
|
|
|
|
|
<div class="flex flex-col w-full gap-2 xl:flex-row">
|
|
|
|
|
<x-forms.input required id="smtpHost" placeholder="smtp.mailgun.org" label="Host" />
|
|
|
|
|
<x-forms.input required id="smtpPort" placeholder="587" label="Port" />
|
2024-12-23 14:26:26 +00:00
|
|
|
<x-forms.select required id="smtpEncryption" label="Encryption">
|
|
|
|
|
<option value="starttls">StartTLS</option>
|
|
|
|
|
<option value="tls">TLS/SSL</option>
|
2024-12-11 10:57:56 +00:00
|
|
|
<option value="none">None</option>
|
|
|
|
|
</x-forms.select>
|
2024-12-09 13:39:50 +00:00
|
|
|
</div>
|
2024-12-11 10:57:56 +00:00
|
|
|
<div class="flex flex-col w-full gap-2 xl:flex-row">
|
|
|
|
|
<x-forms.input id="smtpUsername" label="SMTP Username" />
|
|
|
|
|
<x-forms.input id="smtpPassword" type="password" label="SMTP Password"
|
|
|
|
|
autocomplete="new-password" />
|
|
|
|
|
<x-forms.input id="smtpTimeout" helper="Timeout value for sending emails." label="Timeout" />
|
2024-12-09 13:39:50 +00:00
|
|
|
</div>
|
2024-12-11 10:57:56 +00:00
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2025-06-26 10:23:08 +00:00
|
|
|
<div class="p-4 border dark:border-coolgray-300 border-neutral-200">
|
2024-12-11 10:57:56 +00:00
|
|
|
<form wire:submit.prevent="submitResend" class="flex flex-col">
|
|
|
|
|
<div class="flex gap-2">
|
|
|
|
|
<h3>Resend</h3>
|
|
|
|
|
<x-forms.button type="submit">
|
|
|
|
|
Save
|
|
|
|
|
</x-forms.button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="w-32">
|
|
|
|
|
<x-forms.checkbox instantSave='instantSave("Resend")' id="resendEnabled" label="Enabled" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex flex-col gap-4">
|
|
|
|
|
<div class="flex flex-col w-full gap-2 xl:flex-row">
|
|
|
|
|
<x-forms.input type="password" id="resendApiKey" placeholder="API key" required label="API Key"
|
|
|
|
|
autocomplete="new-password" />
|
2023-09-15 13:34:25 +00:00
|
|
|
</div>
|
2024-12-11 10:57:56 +00:00
|
|
|
</div>
|
|
|
|
|
</form>
|
2023-09-15 13:34:25 +00:00
|
|
|
</div>
|
2024-12-11 10:57:56 +00:00
|
|
|
</div>
|
2023-06-06 13:30:33 +00:00
|
|
|
</div>
|