I have installed Roundcube webmail on my server, but I want to customise it a little but.
In the file config/defaults.inc.php, there is variable $config['smtp_user'] = '%u';
But I'd like to change this value, based on the value of $_SESSION["username"];
, however the session is not started in the file, and only is in the index.php file.
I have tried setting $config['smtp_user']
inside the index.php file, which sets it fine but it doesn't work when sending mail.
Is there a way I can change this value inside my config/defaults.inc.php
or config/config.inc.php
file and use the value from $_SESSION["username"]