@@ -357,23 +357,23 @@ function text($key){
357
357
<h5 style =" margin-top :50px " >Use built in SMTP server</h5 >
358
358
<p class =" text-muted" >Uses SMTP server provided by LinkStack. Might not be 100% reliable. Has to be disabled in order to user a custom SMTP server.<br >(Save changes with 'Apply changes' below)</p >
359
359
<div class =" input-group" >
360
- <div class =" mb-3 form-check form-switch toggle-btn" ><input name =" toggle" class =" switch toggle-btn" type =" checkbox" id =" toggle-smtp" <?php if (EnvEditor :: getKey (' MAIL_MAILER' ) != ' built-in' ){echo ' />' ;}else {echo ' checked>' ;} ? > <label for =" toggle-smtp" class =" form-check-label" >Enable</label ></div >
360
+ <div class =" mb-3 form-check form-switch toggle-btn" ><input name =" toggle" class =" switch toggle-btn" type =" checkbox" id =" toggle-smtp" <?php if (env (' MAIL_MAILER' ) != ' built-in' ){echo ' />' ;}else {echo ' checked>' ;} ? > <label for =" toggle-smtp" class =" form-check-label" >Enable</label ></div >
361
361
</div ></div >
362
362
<input type =" hidden" name =" _token" value =" {{ csrf_token ()} }" >
363
363
<div style =" max-width : 600px ; padding-left : 20px ;" >
364
364
<br ><h5 >Custom SMTP server:</h5 >
365
365
<label style =" margin-top :15px " >Host</label >
366
- <input type =" text" class =" form-control form-control-lg" class =" form-control form-control-lg" name =" MAIL_HOST" value =" {{ EnvEditor :: getKey (' MAIL_HOST' )} }" />
366
+ <input type =" text" class =" form-control form-control-lg" class =" form-control form-control-lg" name =" MAIL_HOST" value =" {{ env (' MAIL_HOST' )} }" />
367
367
<label style =" margin-top :15px " >Port</label >
368
- <input type =" text" class =" form-control form-control-lg" class =" form-control form-control-lg" name =" MAIL_PORT" value =" {{ EnvEditor :: getKey (' MAIL_PORT' )} }" />
368
+ <input type =" text" class =" form-control form-control-lg" class =" form-control form-control-lg" name =" MAIL_PORT" value =" {{ env (' MAIL_PORT' )} }" />
369
369
<label style =" margin-top :15px " >Username</label >
370
- <input type =" text" class =" form-control form-control-lg" class =" form-control form-control-lg" name =" MAIL_USERNAME" value =" {{ EnvEditor :: getKey (' MAIL_USERNAME' )} }" />
370
+ <input type =" text" class =" form-control form-control-lg" class =" form-control form-control-lg" name =" MAIL_USERNAME" value =" {{ env (' MAIL_USERNAME' )} }" />
371
371
<label style =" margin-top :15px " >Password</label >
372
- <input type =" password" class =" form-control" name =" MAIL_PASSWORD" value =" {{ EnvEditor :: getKey (' MAIL_PASSWORD' )} }" />
372
+ <input type =" password" class =" form-control" name =" MAIL_PASSWORD" value =" {{ env (' MAIL_PASSWORD' )} }" />
373
373
<label style =" margin-top :15px " >Encryption type</label >
374
- <input type =" text" class =" form-control form-control-lg" class =" form-control form-control-lg" name =" MAIL_ENCRYPTION" value =" {{ EnvEditor :: getKey (' MAIL_ENCRYPTION' )} }" />
374
+ <input type =" text" class =" form-control form-control-lg" class =" form-control form-control-lg" name =" MAIL_ENCRYPTION" value =" {{ env (' MAIL_ENCRYPTION' )} }" />
375
375
<label style =" margin-top :15px " >From adress</label >
376
- <input type =" text" class =" form-control form-control-lg" class =" form-control form-control-lg" name =" MAIL_FROM_ADDRESS" value =" {{ EnvEditor :: getKey (' MAIL_FROM_ADDRESS' )} }" />
376
+ <input type =" text" class =" form-control form-control-lg" class =" form-control form-control-lg" name =" MAIL_FROM_ADDRESS" value =" {{ env (' MAIL_FROM_ADDRESS' )} }" />
377
377
<button type =" submit" class =" btn btn-primary mt-4" >Apply changes</button >
378
378
</div >
379
379
</form >
0 commit comments