Rename a User’s username in SmarterMail 5.5

By right, you are not able to change the email username from the administrator tool of the Smartermail.

However nothing is impossible from the computer as you may actually change the username through the configuration file.

To change a user’s username from SmarterMail, you may actually change the folder name of the user and configuration file of the SmarterMail to make the username change. To get this done, you MUST be the server administrator that could access to the server back-end.

1. Stop the SmarterMail services.
2. Go to the SmarterMail email folder and usually the default setting will be C:\SmarterMail\Domains\ where domain.com is your domain name.
3. Backup the file accountList.xml.
4. Edit the file accountList.xml, change the username to the new username that you want and save it.
5. Go the email user folder and usually the default folder is C:\SmarterMail\Domains\<domain.com>\<users> where the domain.com is your domain name and users is your username.
6. Change the username folder to your new username.
7. Go into the user folder, backup the file userConfig.xml.
8. Edit the file userConfig.xml and look for the userName tag. (<userName>User</userName>) Save it.
9. Start the SmarterMail services.
10. Done.

Calculate PHP Load time

Have you ever load a page with your Broadband just like using a Dial Up connection? Sometimes, it is not because of the ISP connection problem but it’s just because the scripting that not fully optimized.

If you design PHP script, it’s good practice to benchmark your pages to see the if you could optimize the pages.

The following script let you understand how fast your script loaded.

Put the following script to the most top of your PHP script just after the php tag.

$m_time = explode(" ",microtime());
$m_time = $m_time[0] + $m_time[1];
$loadstart = $m_time;

Then place this script to the bottom of the script to calculate the time.

$m_time = explode(" ",microtime());
$m_time = $m_time[0] + $m_time[1];
$loadend = $m_time;
$loadtotal = ($loadend - $loadstart);
echo "<small><em>Generated page in ". round($loadtotal,3) ." seconds</em></small>";