SendMail not working in strategy tester

 

I have placed a SendMail in my expert advisor code to alert me that a trade has been taken. I set up the email in the Tools/Option/Emil tab. I did a test and it works great going to my cell phone. Then I ran a strategy test on the expert advisor to give it a try. The EA took four trades during the test but I received no emails. Following is my code. Please help.

SendMail("Buy order ", Symbol() + " at " + Ask + " Stop=" + StopLoss + " TP " + TakeProfit);
OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,StopLoss,TakeProfit,Order_Comment,Magic,0,Order_Arrow_Color);

Thanks,

Glen

 
Some functions are disable in test mode. This may be one.
 
phy :
Some functions are disable in test mode. This may be one.

Yes, this is described in article Testing Features and Limits in MetaTrader 4:

Some functions are processed/passed without output

These are Sleep(), Alert(), SendMail(), PlaySound(), MessageBox(), WindowFind(), WindowHandle(), WindowIsVisible()

Reason: