I'm trying to create a strategy that will send me a text message alert via email. Unfortunately, the SendMail() function does not seem to be working.
I have the following code:
if (cond1)
{
Print("RBuD ("+Convert.ToString(Time[0])+")");
SendMail("9********[email protected]", "RBuD ("+Convert.ToString(Time[0])+")", "RBuD");
}
When backtesting in the Strategy Analyzer, the print statement works as expected when cond1 is True but the SendMail function doesn't. I also tried SendMail() with a gmail address but it still seems to not work for a regular gmail address or for a text message via email.
Can anyone help troubleshoot this issue?
Thanks.
Comment