How to setup Email Alerts in RTC control panel

Remote Trade Copier Email Alerts delivery

Remote Trade Copier has a special Email Alerts plug-in that will send an email to each customer when a trade is opened or closed. In this article I will explain how the administrator should set up these alerts.

Before you start using the Email Alerts plug-in

After Email Alerts is installed, make sure you set the correct file permissions. The /plugins/plugin-email-alerts.php file should have the +x attribute to be an executable file. This is usually represented as a 744 or 755 permissions on a Linux system.

The /plugins/plugin-email-alerts.txt file should have the +w attribute so that plugin could write status messages. This is usually represented as a 622 permissions on a Linux system.

Another important thing to check before you use this plug-in is the first line of code in the plugin-email-alerts.php file. On most systems it should read: #/usr/bin/php or #/usr/local/bin/php. Find out what path should be set by using the “which php” command if you have SSH access to your server. On most systems you should have #/usr/bin/php.

This is actually the most confusing part about setting up this plug-in. I have never had any problems using it on LiquidWeb servers, but I had customers who ran into problems setting this up on other web hosting provider servers. It seems that many hosting companies have trouble or just do not allow to run PHP scripts in background. In many cases it was difficult to find out the reason and how exactly hosting companies later solve this problem, but one of the reasons was that the server was using LiteSpeed instead of the popular Apache software.

Usually LiteSpeed can occasionally require a bit of extra work to function correctly when using the PHP selector in cPanel which confirms the issues when using Email Alerts plug-in for RTC.

The problem was solved by adding the following lines to the .htaccess file in the RTC website folder. This folder usually is located at /home/YYY/public_html/XXX where YYY is your cPanel username and XXX is the name of your folder.

The lines in .htaccess:

SetENV PHPRC /home/YYY/public_html/XXX
AddType application/x-httpd-php53 php53 php

Note that your server might use different PHP version, folder name or text used in this file. Contact your hosting provider with these instructions so they could help you solve this. If this does not help them then contact my support team.

Check if the Email Alerts plug-in is enabled

First you need to make sure that the plug-in is enabled. You can check this by logging into the RTC control panel website and check that the “Email Alerts History” menu item is present on the left. This is where all the sent email alerts are displayed. Once an email alert is added to a queue for delivery, it will be saved to this list, and all detailed information about an alert is saved including the message text. You will also find a counter for each alert, which simply tells you how many recipients a particular email message was sent to.

Remote Trade Copier Email Alerts web-page

If the Email Alerts History list is not present in your control panel, then you need to enable the plug-in.

Enable the Email Alerts plug-in for your RTC system

In an older Remote Trade Copier version you need to make changes to the /includes/config.php file that is uploaded on your server. There you will find a line like this “email_alerts => false” and you need to change the word false to true.

The new RTC allows you to control Email Alerts directly from the control panel. You will find an Email Alerts settings tab on the Admin Settings page, simply follow the on-screen instructions to enable this plug-in.

Remote Trade Copier Email Alerts settings tab

Enable Email Alerts for each customer individually

Each customer has an individual subscription to the Email Alerts service, which means that you can charge extra for this service or include it with the main package that you offer. A subscription date is applied to the Email Alerts service for each customer. These subscriptions can be managed automatically, by the Remote Trade Copier payment plug-ins, or manually by an administrator.

When a customer opens the “Notifications” tab, there will be options to set the email address where notifications are delivered, and turn the notifications on and off.

Additionally, customers can turn on “daily summary” notifications. This will send an email at the end of the day with the details about profits or losses. See below how to setup this plug-in as it requires some additional configuration on your server.

Remote Trade Copier notifications settings

When an administrator opens the “Notifications” tab on a customer’s profile page, there will be options to enable or disable the Email Alerts service completely, set a recipient’s email address, change its expiry date, and turn notifications on and off.

Remote Trade Copier notifications settings for admin

That is all that administrators need to do to enable Email Alerts notifications for their customers. When Email Alerts notifications are turned on and the customer has a valid email alerts subscription, a Remote Trade Copier system will send an email notification each time a master account sends a trading signal.

Administrators can turn on the “Admin daily report” notifications. This will send an email at the end of the day about how many new customers joined the service as well as other bits of important information. See below how to set up this plug-in as it requires additional server configuration.

Setting up the “Daily Summary” and “Admin Reports” plug-ins

There are these two kinds of reports that can be sent daily by RTC website and those are “Admin daily reports” and “Daily summary reports”. Each of these are sent by separate plug-ins. Basically you just need to enable them in the RTC control panel as explained above, but before this you need extra work to set them up on your web-server.

To be able to send these reports your server needs to run those plug-ins (php scripts) a few minutes before the midnight each day. And for this to happen you need to use a special app called “cron jobs” (a.k.a. “crontab” or just “cron”) on your server. When you have a cPanel access to your server it is actually easy to setup.

cpanel-search-cron-jobs-icon

“Cron Jobs” app icon in the cPanel.

It is easier to setup “cron jobs” from your cPanel as there are special page for that, but also possible to setup from a regular command line when you access your server using SSH connection. If your server does not have cPanel then you should contact your hosting provider support team to help you with this. If your server has cPanel and you still do not know how to set this up then contact my suppor team for help.

Here’s how it looks inside the “Cron jobs” app when creating a new job for RTC plug-ins.

rtc-add-new-cron-job-daily-reports-setup

One cron job added. Already filled in all the fields to create another one.

For programmers and tech savvy users it looks like this in the “cron” configuration.

55 23 * * * root /usr/local/bin/php /RTC_PATH/plugins/plugin-daily-summary.php 2>&1
54 23 * * * root /usr/local/bin/php /RTC_PATH/plugins/plugin-admin-daily-report.php 2>&1

NOTE: Make sure both files have 755 file permissions. Also make sure you use correct PHP path as it can be /usr/local/bin/php or /usr/bin/php or even some other. See the beginning of this article for more info or contact your hosting provider to get this PHP path.

Email delivery depends on your SMTP server

An important thing to understand is that the Email Alerts plug-in cannot be responsible for the successful delivery of the email messages. The plug-in is responsible for passing the email to the SMTP server, like any regular client-side email delivery software, and now it is your SMTP server’s responsibility to deliver an email message. Note that in some cases emails can be delivered to the customers Spam/Bulk folder. This depends on many factors and Forex Trade Copier does everything it can to make sure that emails are created in the right format, but this does not ensure successful delivery every time. To make sure the emails are delivered successfully a customer should take action by himself/herself.

How to make sure that email alerts are not delivered into Spam folder?

Customers should add the sender’s email address to the contacts list. This will tell the email software that the sender is trusted, and most email applications will not deliver email from trusted senders to the Spam folder.

Some email programs may require custom actions to be made to add a sender to a “trust list” or “white list”. Customers should learn more about this from their email server hosting company.

How and when does the Email Alerts plug-in deliver emails to subscribers?

When a trading action is made on a master MT4 account and the Server EA sends its data to the control panel, the Email Alerts are executed as well. The Email Alerts plug-in is executed as a separate process on your server and it operates independently to send an email notification to each subscriber. The Plug-in will get the list of all the followers of the particular signal provider which sent a trade signal and then deliver its email notification to those who have the Email Alerts service enabled and turned on.

Email Alerts notifications about modified trade details

It is also possible to set the plug-in to send alerts by email when a trade is modified, but it’s not very useful in many cases because you do not want to overload your customers with emails about each stop loss value modification that is done on a trade, especially when a trailing stop loss is applied.

About the author

Rimantas Petrauskas

First I am a father, a husband and then the author of the book “How to Start Your Own Forex Signals Service”. I am also a Forex trader, a programmer, an entrepreneur, and the founder of ea-coder.com Forex blog. I have created two of the most popular trade copiers and other trading tools for MT4 that are already used world wide by hundreds of currency traders.

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Copyright © 2009-2018. Rimantas Petrauskas | Terms and ConditionsPrivacy PolicyEarnings Disclaimer
Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts.
The purchase, sale or advice regarding a currency can only be performed by a licensed Broker/Dealer. Neither us, nor our affiliates or associates involved in the production and maintenance of these products or this site, is a registered Broker/Dealer or Investment Advisor in any State or Federally-sanctioned jurisdiction. All purchasers of products referenced at this site are encouraged to consult with a licensed representative of their choice regarding any particular trade or trading strategy. No representation is being made that any account will or is likely to achieve profits or losses similar to those discussed on this website. The past performance of any trading system or methodology is not necessarily indicative of future results.
Clearly understand this: Information contained in this product are not an invitation to trade any specific investments. Trading requires risking money in pursuit of future gain. That is your decision. Do not risk any money you cannot afford to lose. This document does not take into account your own individual financial and personal circumstances. It is intended for educational purposes only and NOT as individual investment advice. Do not act on this without advice from your investment professional, who will verify what is suitable for your particular needs & circumstances. Failure to seek detailed professional personally tailored advice prior to acting could lead to you acting contrary to your own best interests & could lead to losses of capital.
HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY. SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN.

Copyright © 2009-2018. Rimantas Petrauskas | Terms and ConditionsPrivacy PolicyEarnings Disclaimer
WordPress Security