Does anyone know how to check if user have enabled Email Notification on their Meta Trader Option?

 

Hello people. 

It is great that EA or indicator can send email from their Meta Trader Platform. However, before the EA send email, I would like to make sure the user enabled Email Notification on their Meta Trader Option. So I can avoid some errors. 

Does anyone know how to do it ? So far, no reference from MQL5 reference.

 
FinanceEngineer:

Hello people. 

It is great that EA or indicator can send email from their Meta Trader Platform. However, before the EA send email, I would like to make sure the user enabled Email Notification on their Meta Trader Option. So I can avoid some errors. 

Does anyone know how to do it ? So far, no reference from MQL5 reference.


TerminalInfoInteger(TERMINAL_EMAIL_ENABLED)
 

Cool !! Exactly what I was looking for . Thanks so much.

Reason: