|
38 | 38 | <div class="form-group col-md-6"> |
39 | 39 | <label class="control-label">SMTP Host</label> |
40 | 40 | <div> |
41 | | - <input required type="text" class="form-control" name="mail:host" value="{{ old('mail:host', config('mail.mailers.smtp.host')) }}" /> |
| 41 | + <input required type="text" class="form-control" name="mail:mailers:smtp:host" value="{{ old('mail:mailers:smtp:host', config('mail.mailers.smtp.host')) }}" /> |
42 | 42 | <p class="text-muted small">Enter the SMTP server address that mail should be sent through.</p> |
43 | 43 | </div> |
44 | 44 | </div> |
45 | 45 | <div class="form-group col-md-2"> |
46 | 46 | <label class="control-label">SMTP Port</label> |
47 | 47 | <div> |
48 | | - <input required type="number" class="form-control" name="mail:port" value="{{ old('mail:port', config('mail.mailers.smtp.port')) }}" /> |
| 48 | + <input required type="number" class="form-control" name="mail:mailers:smtp:port" value="{{ old('mail:mailers:smtp:port', config('mail.mailers.smtp.port')) }}" /> |
49 | 49 | <p class="text-muted small">Enter the SMTP server port that mail should be sent through.</p> |
50 | 50 | </div> |
51 | 51 | </div> |
52 | 52 | <div class="form-group col-md-4"> |
53 | 53 | <label class="control-label">Encryption</label> |
54 | 54 | <div> |
55 | 55 | @php |
56 | | - $encryption = old('mail:encryption', config('mail.mailers.smtp.encryption')); |
| 56 | + $encryption = old('mail:mailers:smtp:encryption', config('mail.mailers.smtp.encryption')); |
57 | 57 | @endphp |
58 | | - <select name="mail:encryption" class="form-control"> |
| 58 | + <select name="mail:mailers:smtp:encryption" class="form-control"> |
59 | 59 | <option value="" @if($encryption === '') selected @endif>None</option> |
60 | 60 | <option value="tls" @if($encryption === 'tls') selected @endif>Transport Layer Security (TLS)</option> |
61 | 61 | <option value="ssl" @if($encryption === 'ssl') selected @endif>Secure Sockets Layer (SSL)</option> |
|
66 | 66 | <div class="form-group col-md-6"> |
67 | 67 | <label class="control-label">Username <span class="field-optional"></span></label> |
68 | 68 | <div> |
69 | | - <input type="text" class="form-control" name="mail:username" value="{{ old('mail:username', config('mail.mailers.smtp.username')) }}" /> |
| 69 | + <input type="text" class="form-control" name="mail:mailers:smtp:username" value="{{ old('mail:mailers:smtp:username', config('mail.mailers.smtp.username')) }}" /> |
70 | 70 | <p class="text-muted small">The username to use when connecting to the SMTP server.</p> |
71 | 71 | </div> |
72 | 72 | </div> |
73 | 73 | <div class="form-group col-md-6"> |
74 | 74 | <label class="control-label">Password <span class="field-optional"></span></label> |
75 | 75 | <div> |
76 | | - <input type="password" class="form-control" name="mail:password"/> |
| 76 | + <input type="password" class="form-control" name="mail:mailers:smtp:password"/> |
77 | 77 | <p class="text-muted small">The password to use in conjunction with the SMTP username. Leave blank to continue using the existing password. To set the password to an empty value enter <code>!e</code> into the field.</p> |
78 | 78 | </div> |
79 | 79 | </div> |
@@ -120,11 +120,11 @@ function saveSettings() { |
120 | 120 | url: '/admin/settings/mail', |
121 | 121 | contentType: 'application/json', |
122 | 122 | data: JSON.stringify({ |
123 | | - 'mail:host': $('input[name="mail:host"]').val(), |
124 | | - 'mail:port': $('input[name="mail:port"]').val(), |
125 | | - 'mail:encryption': $('select[name="mail:encryption"]').val(), |
126 | | - 'mail:username': $('input[name="mail:username"]').val(), |
127 | | - 'mail:password': $('input[name="mail:password"]').val(), |
| 123 | + 'mail:mailers:smtp:host': $('input[name="mail:mailers:smtp:host"]').val(), |
| 124 | + 'mail:mailers:smtp:port': $('input[name="mail:mailers:smtp:port"]').val(), |
| 125 | + 'mail:mailers:smtp:encryption': $('select[name="mail:mailers:smtp:encryption"]').val(), |
| 126 | + 'mail:mailers:smtp:username': $('input[name="mail:mailers:smtp:username"]').val(), |
| 127 | + 'mail:mailers:smtp:password': $('input[name="mail:mailers:smtp:password"]').val(), |
128 | 128 | 'mail:from:address': $('input[name="mail:from:address"]').val(), |
129 | 129 | 'mail:from:name': $('input[name="mail:from:name"]').val() |
130 | 130 | }), |
|
0 commit comments