Roundcube Community Forum
SVN Releases => SVN Discussion => Topic started by: AndyW on July 26, 2007, 03:22:48 AM
-
I use an array of servers in $rcmail_config['default_host'] for login. Once a use is logged in, for sending email I would like to use
$rcmail_config['smtp_server'] = '%s';
- where %s value is the server chosen at login from array at $rcmail_config['default_host']
$rcmail_config['smtp_user'] = '%u'
$rcmail_config['smtp_pass'] = '%p'
Or is there a work around for this ?
TIA
-
not sure how to do the %s but can I add to the request - could the user's select %s be stored (in a cookie?) so they always see their default server, once they have successfully logged in the first time? Still with a selection list but with the most likely choice already selected ...
Andy
-
Multiple SMTP servers is a patch I submitted a while ago. I'm 98% sure that it's in the current SVN trunk (not devel-vnext).
Basically, the SMTP servers would be specified the same as the multiple IMAP servers :)
As for the cookie request, that's fair; except that I think RoundCube is meant to not really store that information in a cookie. Although, it could be a nice little "plugin" that could be developed. As a matter of fact, I'm pretty sure nothing is stored until you log in and even then the session is kept in the database.
-
Just using 'localhost' puts the correct server in for me. It doesn't for you?
-
Please post the patch, would like to add this to my rc2 test install.