Setting up SMTP Authentication for phpVMS

Due to the fact that our server requires authentication for sending email, you must configure SMTP authentication for phpVMS. This is a three step process. The steps are outlined below.

Step 1 - Create an Email Account in cPanel to Send Mail From
To send email, an email account must be created in cPanel. To do so, go to your cPanel account. Go to to the "Email Accounts" section in cPanel.



Then, create a new account to send emails from. A good email to use would be "noreply@{yourdomain}.{your tld}" - for example, "noreply@yourvirtualairline.com".



Keep track of the email address and password you enter here as it will be needed later on.

Step 2 - Enable SMTP Authentication in the local.config.php of phpVMS
Now that we have an email account, we must tell phpVMS to use it. Go to the File Manager in cPanel.



Using the File Manager in cPanel, navigate to your phpVMS installation directory, then to the "core" directory. This is usually "/public_html/core/". From there, click on the "local.config.php" file and click "Edit".



Edit the "Email Settings" section to reflect the appropriate information. All settings should be changed to the following. The EMAIL_FROM_NAME, EMAIL_FROM_ADDRESS, EMAIL_SMTP_SERVERS, EMAIL_SMTP_USER, and EMAIL_SMTP_PASS settings should be changed to the relevant details for your virtual airline (do not directly copy the settings in the image). The EMAIL_USE_SMTP, EMAIL_SMTP_PORT, and EMAIL_SMTP_USE_AUTH should be changed to the information in the image.



Save and close this file.

Step 3 - Add the Required Line to the phpVMS Email Code File
phpVMS, by default, has a bug preventing SMTP authentication from working correctly. Using the File Manager again, go to the "core/classes" directory. This is usually "/public_html/core/classes/". From there, click on the "Util.class.php" file and click "Edit".



Around line 257, add the following line so that your file matches this one. Take care to add it below/above the appropriate lines.



Save and close this file.

Conclusion
Your phpVMS installation should now be able to send email again. If not, or you are having difficulty with this process, please contact support.
  • 254 Users Found This Useful
Was this answer helpful?

Related Articles

How to Use the Backups System

OverviewThe backups system we offer to our web hosting customers is one of the most powerful...

Avoiding Getting Banned by the Firewall

For security, we have a firewall on all of our servers that monitors connections and takes action...

Changing your cPanel Password via the Client Area

The following procedure outlines the steps to access the Change Password area for cPanel.1. Sign...

Changing PHP Version, Libraries, and Settings

OverviewWe offer our customers the ability to change the PHP version and libraries available to...

Adding Your Custom Domain Email Accounts to Gmail.

In this video, we will discuss how to add custom domain emails into your Gmail account.