How to send email to my EA?

 
Hi guys. I know how to configure and code that emails be sent from an expert advisor to my mail.  But I do not know how to configure and code that my expert advisor receive mails from me. This is necessary to remotely control your EA's behavior. For example, you may want to send a certail number or words say "close all"  asking your EA to close all open positions right from your mail. Thanks guys.
 
macpee: Hi guys. I know how to configure and code that emails be sent from an expert advisor to my mail.  But I do not know how to configure and code that my expert advisor receive mails from me. This is necessary to remotely control your EA's behavior. For example, you may want to send a certail number or words say "close all"  asking your EA to close all open positions right from your mail. Thanks guys.

MetaTrader with standard MQL does not support incoming messages, be that via email, or other means. Sending messages to your EA is only possible via indirect means.