@@ -357,23 +357,23 @@ function text($key){
357357<h5 style =" margin-top :50px " >Use built in SMTP server</h5 >
358358<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 >
359359<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 >
361361</div ></div >
362362<input type =" hidden" name =" _token" value =" {{ csrf_token ()} }" >
363363<div style =" max-width : 600px ; padding-left : 20px ;" >
364364<br ><h5 >Custom SMTP server:</h5 >
365365<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' )} }" />
367367<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' )} }" />
369369<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' )} }" />
371371<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' )} }" />
373373<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' )} }" />
375375<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' )} }" />
377377<button type =" submit" class =" btn btn-primary mt-4" >Apply changes</button >
378378</div >
379379</form >
0 commit comments