sorry for open another topic, but the tips I found here that each domain has a different theme did not work.
someone could help me do this?
follow these tips below, but did not work.
each domain a theme, a login page without the need to enter the domain, @mydomain.com
Please thank this already.
$HOST = $_SERVER['HTTP_HOST'];
if ($HOST == 'webmail.mydomain.com'){
$rcmail_config['skin_path'] = "skins/$HOST/";
$rcmail_config['product_name'] = 'My Webmail';
}else{
$rcmail_config['skin_path'] = 'skins/webmail.anotherdomain.co/';
$rcmail_config['product_name'] = 'Another Webmail';
}
after some hours... now work!
paste in the end main.inc.php
<?php
$rcmail_config = array();
$HOST = $_SERVER['HTTP_HOST'];
if ($HOST = 'mail.domain.com'){
$rcmail_config['skin_path'] = 'skins/$HOST/';
$rcmail_config['skin'] = 'domain';
$rcmail_config['product_name'] = '"Vinde a Mim Todos Os Cansados e Oprimidos e Eu Vos Aliviarei"';
$rcmail_config['username_domain'] = 'domain.com';
}else{
}
?>
waiting...
skins is same for all domains, i try fix it!
Update....
now ok
<?php
$HOST = $_SERVER['HTTP_HOST'];
if ($HOST == 'mail.domain.com'){
$rcmail_config['skin'] = 'name skin';
$rcmail_config['product_name'] = '"Vinde a Mim Todos Os Cansados e Oprimidos e Eu Vos Aliviarei"';
$rcmail_config['username_domain'] = 'domain.com';
}else{
}
?>