Sending email from your UpTime web site using PHP SMTP

In order to avoid confusion, black lists and anti-spam filters, we always  recommend that you relay email through a legitimate mail server using SMTP authentication.  We’ve installed several PHP-Pear packages to help you with that.  Here is an example of a PHP page that sends mail using SMTP authentication, relaying through

 require_once "Mail.php";
 $from = "MyName <>";
 $to = "TargetName <>";
 $subject = " web form results";
 $body = "Hi,\n\nThank you for using our contact form.";
 $host = "";
 $username = "";
 $password = "!my_Secure_Password";
 $headers = array ('From' => $from,
 'To' => $to,
 'Subject' => $subject);
 $smtp = Mail::factory('smtp',
 array ('host' => $host,
 'auth' => true,
 'username' => $username,
 'password' => $password));
 $mail = $smtp->send($to, $headers, $body);
 if (PEAR::isError($mail)) {
 echo("<p>" . $mail->getMessage() . "</p>");
 } else {
 echo("<p>Message successfully sent!</p>");

More details on various objects, parameters and methods may be found at

Controlling access to your website by IP address using .htaccess

Blocking or allowing IP addresses to your website using .htaccess is very easy. You can block a specific IP address or range, or you can block all traffic and allow only a specific IP address or range, the choice is yours. Create a file called


and add three lines to it using the examples below.

To block a specific IP:

order allow,deny
deny from
allow from all

To allow only a specific IP:

Order allow,deny
deny from all
allow from

Make sure that the .htaccess file permissions are secure, you’ll probably want to set it’s permissions to 644 (RW-R–R–).

Redirecting your site using .htaccess

Redirecting a site or directory can be done by creating a .htaccess file for your website and adding a single line to that file.  The line required to redirect consists of 3 things:

  1. The ‘Redirect 301′ command
  2. The directory or page being redirected. A / (forward slash) indicates that the entire site will be redirected.
  3. The URL of the destination.

Here is an example of a redirect of an entire site to

Redirect 301 /

Make sure that the .htaccess file permissions are secure, you’ll probably want to set it’s permissions to 644 (RW-R–R–).

How to add email accounts and FTP users to UpTime hosting

To add additional email accounts and/or FTP users to your UpTime hosting package, follow these easy steps:

  1. Log in to the UpTime interface.
  2. On the left hand menu, click ‘Edit Users’. This will show a list of existing accounts.To Modify an account, click on the name, make your changes, and then click ‘Save’. To delete accounts select the accounts using the check boxes and click on ‘Delete Selected Users’.
  3. To add an account, click on the text link to ‘Add a user to this server’.
  4. Complete the ‘Email address’, ‘Real name’, and ‘Password fields. Configure all other settings, for instance:
  • Quota: How much of your allocated storage space the account can use
  • Mail Forwarding settings: Forward mail for this user to another address, or configure an autoreply
  • Other user permissions > Login permissions: This will determine if the user is only an email account of if they have FTP access as well.

Once the settings are correct, simply click on the ‘Create’ button and the user is created!

What does the UpTime “Bandwidth limit approaching” notice mean?

If you are on an UpTime plan that does not include unlimited bandwidth, you may occasionally receive “Bandwidth limit approaching” email notifications. This is to warn you that you are approaching your daily bandwidth limit, and if that limit is exceeded, your hosting package will be disabled until the daily bandwidth limit is no longer exceeded [1].

The bandwidth notification looks similar to this:

Sent: 10/22/2012 1:00:14 PM
Subject: Bandwidth limit approaching for

The following UpTime account is approaching its bandwidth limit:

Domain name:   
Accounting period:       1 days
Bandwidth limit:         250 MB
Bandwidth usage:         215.82 MB over the last 1 days
Percentage used:         86%

Please note that usage by all sub-servers is included in this

You can upgrade your UpTime hosting plan by signing in to your
ReachONE account at and selecting a new
plan, or by contacting ReachONE Internet technical support at

Sent by ReachONE Automated monitoring system at:

ReachONE Internet Support Team
4500 3rd Ave. SE, Suite 2
Lacey, WA  98503
(888) 820-7559

Bandwidth usage includes the following:

  1. Data transferred to and from UpTime using FTP and the UpTime web interface
  2. Traffic to your website
  3. Email traffic

There are multiple options to resolve the issue:

  1. Limit your usage: Cut down on the amount of email you are sending and receiving, and/or content that you are uploading.
  2. Ignore: Allow your hosting package to be disabled, it will automatically be re-enabled daily bandwidth limit is no longer exceeded [1].
  3. Upgrade: Upgrade to a different UpTime hosting package. The packages and pricing are available on our UpTime Hosting page. We also have a support article on how to change your UpTime Hosting plan.

If you have any other questions about UpTime, or have difficulty with any of these instructions, please contact our support team.


[1] Daily Bandwidth is calculated by adding together the FTP, Email and HTTP traffic for the last 2 hours.  Daily Bandwidth is recalculated every hour.

How to change your UpTime hosting plan

ReachONE UpTime hosting gives you control over all of your websites, your email, DNS records, and much more from a single, easy to use web interface. This article describes how to change your UpTime hosting plan.

ReachONE Internet support staff can change UpTime hosting plan for you, but you can also change it yourself by following these steps:

  1. Click on the Account Login link on the site.
  2. Click on your UpTime hosting plan in the ‘Manage Services’ section.
  3. Click on the ‘Upgrade’ or ‘Downgrade’ button.
  4. Select the UpTime plan that you would like to change to, and click ‘Continue’.
  5. The next screen shows your old plan and your new plan. Click on the button to finalize the changes.
  6. Your plan has been changed, and is ready to use!

ReachONE UpTime hosting

How to add UpTime hosting to your ReachONE account

ReachONE UpTime hosting

ReachONE UpTime hosting gives you control over all of your websites, your email, DNS records, and much more from a single, easy to use web interface. This article describes how to add UpTime hosting to your ReachONE Internet account.

ReachONE Internet support staff can help you add UpTime hosting to your account, but you can also add it yourself by following these steps:

  1. Click on the Account Login link on the site.
  2. Click on ‘Buy a New Bundle’ in the ‘Manage Services’ section.
  3. Select the UpTime hosting package you would like, and click ‘add’. You will see a ‘Rate Uptime Hosting… Added’ message.
  4. Click on the new UpTime hosting rate to expand the VirtualMin Account, and click ‘add’.
  5. Complete the following fields:
    Login ID*: This will be the username that you use to log in to the UpTime hosting interface
    Domain Name*:The domain name that you are hosting, including the TLD (.com, .org, etc.)
    Password*:The password for your UpTime username
    Primary Email address*:The email address where you would like to receive UpTime notifications
  6. Click on ‘Add Service’.
  7. That’s it, your done! You’ll receive and email shortly that contains all of your UpTime account details, including how to log in.

How to register a new domain name

For more information on registering a domain, please contact ReachONE’s sales staff.

Grab your personal domain name before it's taken.

ReachONE can help you claim your piece of the web by registering your own domain name. Register your domain name and we will manage the renewal process, contact information (WHOIS), and name servers for you.

ReachONE Internet support staff can help you register a domain name, but you can also register the domain name yourself by following these easy steps:

  1. Click on the Account Login link on the site.
  2. Click on ‘Buy’ button under the ‘Buy a Bundle’ Domain Name Registration heading.
  3. Enter the name of the domain name exactly as you would like it to be, including the TLD (top level domain) you would like. (i.e. .com, .org, etc.).
  4. If the domain name you would like is available, select the domain name and choose how long you would like to register it for. If the domain you would like is not available you can choose a similar domain, or search for a different one.
  5. Log into your ReachONE account using your account login, or create a new customer account.
  6. Complete any fields that did not auto-populate, and verify that all the information is correct and up to date.
  7. Decide whether you want your domain to be locked or not. Locking a domain prevents requests to transfer the domain, as well as changes to nameserver information.
  8. Enter the nameservers that you would like your domain to point to.
    • ReachONE hosting customers that would like ReachONE Internet to host their DNS would enter for primary and for secondary.
    • If you would like to host your DNS records with a third party provider, enter their nameservers.
  9. Enter your credit card and billing information.
  10. Review your order making sure that all of the information is correct. Press Submit.
  11. Your domain is now registered!


How do I update my WordPress Database settings?

Much like changing your WordPress Site URL, WordPress database settings can be configured in the wp-config.php file. Simply edit the following lines in the wp-config.php to update your database host, name, username, and password:

// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘myDBname’);

/** MySQL database username */
define(‘DB_USER’, ‘myDBuser’);

/** MySQL database password */
define(‘DB_PASSWORD’, ‘myDBpassword’);

/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);

How can I change my WordPress Site URL?

WordPress sites can be “broken” by having an incorrect “Site URL” specified in your WordPress settings. Symptoms may include unexpected redirects, or for the site content to only load partially. It may also create problems logging in to the WordPress administration portion of your site to change the Site URL. Fortunately, there is an easy way to override the Site URL, by simply adding a couple of lines to a WordPress configuration file. Add the following two lines to wp-config.php file, making sure to replace the example URL with the URL of your website: