The secrets of the MetaTrader 4 platform: how to set up email notifications
В last article We have already learned about the secrets of MetaTrader 4, how to set up sound alerts. Today we will consider how to set up alerts on e–mail.
Setting up a mail server
In order for the terminal to send a notification of specified events to your e-mail, you must open the "Tools - Settings - Mail" tab, check the "Enable" field and configure the mail server. In each field, the format of the parameter to be entered is marked in red.
Let's look more closely at what and where to enter it.
The "SMTP Server" field is where you enter the address of the e-mail server you are using. A colon is used to specify the port number. As a rule, this is port number 25. My mail is on the mail server gmail.com, so I will have smtp.gmail.com:25 in this field. For other mail servers you should write mail.ru, yandex.ru, and so on instead of gmail.com.
The "SMTP login" field is actually your e-mail address. For example: fortrader@gmail.com.
The "SMTP password" field is your email password, respectively.
Field "From whom" - again, enter your login and email.
The "To" field - here we enter the username and e-mail address to which the notification will be sent. For example, I want notifications to be sent to my work email address during the work day. I enter my work email address.
When filling in the fields "To" and "From" you can ignore the login, typing only the e-mail address, which I did.
After that, press the "Test" button. If everything is done correctly, in the "Terminal - Log" tab the following inscription will appear
By opening my email, you can see that the test alert was safely delivered to me.
Additionally, in MetaTrader 4 terminal notification via sms is implemented. To do this, you must enter a cell phone number in the "To" field and specify the settings of the SMTP-server of your mobile operator. It should be noted that not all operators support the function of using their SMTP-servers without resorting to POP3 servers.
Creating a signal for an e-mail alert
Now we need to create the necessary signal for email alerts. Go to the tab "Terminal - Alerts" and click Insert and fill in all the fields.
To create an alert text, click the "..." button on the "Source" line and enter the subject and text of the message.
After creating a text message, press the "Send" button. Then press the "Test" button. If everything is done correctly in the tab "Terminal - Log" you can see a message from the terminal about successful sending notification to e-mail.
We check our mail and see the notification we received.
As you can see, setting up email alerts is not complicated at all. Customize your MetaTrader 4 terminal with the full range of available features and make your trading on foreign exchange market even more comfortable and profitable.
Can a port or IP be banned if you send frequent emails like this?