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.
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.
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.
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.
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.
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.
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.