Skip to content

Commit

Permalink
[4.x] Drop Laravel 6 mail view (#9545)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Feb 20, 2024
1 parent 8193ac9 commit 6ab5f3c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 88 deletions.
47 changes: 43 additions & 4 deletions resources/views/utilities/email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,49 @@
<p class="text-sm text-gray mb-4">{!! __('statamic::messages.email_utility_configuration_description', ['path' => config_path('mail.php')]) !!}</p>
<div class="card p-0">
<table class="data-table">
@if (config('mail.mailers'))
@include('statamic::utilities.partials.email-l7')
@else
@include('statamic::utilities.partials.email-l6')
<tr>
<th class="pl-4 py-2 w-1/4">{{ __('Default Mailer') }}</th>
<td><code>{{ config('mail.default') }}</code></td>
</tr>
@if (config('mail.default') == 'smtp')
<tr>
<th class="pl-4 py-2 w-1/4">{{ __('Host') }}</th>
<td><code>{{ config('mail.mailers.smtp.host') }}</code></td>
</tr>
<tr>
<th class="pl-4 py-2 w-1/4">{{ __('Port') }}</th>
<td><code>{{ config('mail.mailers.smtp.port') }}</code></td>
</tr>
<tr>
<th class="pl-4 py-2 w-1/4">{{ __('Encryption') }}</th>
<td>
@if (config('mail.mailers.smtp.encryption'))
<code>{{ config('mail.mailers.smtp.encryption') }}</code>
@endif
</td>
</tr>
<tr>
<th class="pl-4 py-2 w-1/4">{{ __('Username') }}</th>
<td>
@if (config('mail.mailers.smtp.username'))
<code>{{ config('mail.mailers.smtp.username') }}</code>
@endif
</td>
</tr>
<tr>
<th class="pl-4 py-2 w-1/4">{{ __('Password') }}</th>
<td>
@if (config('mail.mailers.smtp.password'))
<code>{{ config('mail.mailers.smtp.password') }}</code>
@endif
</td>
</tr>
@endif
@if (config('mail.default') == 'sendmail')
<tr>
<th class="pl-4 py-2 w-1/4">{{ __('Sendmail') }}</th>
<td><code>{{ config('mail.mailers.sendmail.path') }}</code></td>
</tr>
@endif
<tr>
<th class="pl-4 py-2 w-1/4">{{ __('Default From Address') }}</th>
Expand Down
40 changes: 0 additions & 40 deletions resources/views/utilities/partials/email-l6.blade.php

This file was deleted.

44 changes: 0 additions & 44 deletions resources/views/utilities/partials/email-l7.blade.php

This file was deleted.

0 comments on commit 6ab5f3c

Please sign in to comment.