webmail.clientdomain.com go directly to DWMail?

skypanther

Exalted Code Master!
A client wants to use DWMail exclusively and doesn't want to even see the other web mail options. I proposed creating a webmail subdomain and have it go right to DWMail. Now, what's the best way to do so? I could set up a PHP redirect, but is there a better way?

Or, is there some way I can do this with the existing mail.client's_domain. com? I don't see any default webmail client preferences in the control panel.

Thanks,
Tim
 
you could simply make a webmail subdomain, then make it a permanent redirect to the dwmail full url, or meta refresh/server side redirect as well.
 
...then make it a permanent redirect to the dwmail full url...

If this is something I can do through HSphere, I don't see how. I won't go messing with custom DNS. I'm just going to go the PHP redirect route.

Thanks,
Tim
 
Oops, I found the HSphere Redirect spot. I've set that. This was the script I was going to use in case someone else finds it useful:


PHP:
<?php
function redirect($url) {
    if (!headers_sent()) {
		// If headers not sent yet... then do php redirect
		header('Location: '.$url);
		exit;
    } else {
		// If headers are sent... do java redirect... if java disabled, do html redirect.
		echo '<script type="text/javascript">';
		echo 'window.location.href="'.$url.'";';
		echo '</script>';
		echo '<noscript>';
		echo '<meta http-equiv="refresh" content="0;url='.$url.'" />';
		echo '</noscript>';
		exit;
    }
} //==== End -- Redirect
redirect('http://mail.clientdomain.com/dwmail/');
?>
 
Back
Top