PDA

View Full Version : Email alerts working on one PC but not the other



mcasalvazqwz
03:04,
Hey guys,
I lately made an EA which will give me email alerts and everything works perfectly on this particular computer but when I try to use it on another computer it's failing on me for an unknown reason.

The email settings are the exact same as well as the preferences of the EA itself.
I get the achievement and moment and last_time to print so it's getting that far at least.
It is simply not saying that it sent the email nor can it be .

When I do the email test I do receive an email and the EA includes a smiley face in the top right.
Any thoughts are welcome.

Here is your code:
Inserted Code // ------------------------------------------------------------------ //| ALERT.mq4 | //| | //| https://www.mql5.com | //p ------------------------------------------------------------------ #property copyright #property link https://www.mql5.com #property version 1.00 #property stringent extern dual Breach = 0.0001; bool AlertsOnTheHour() //true when new H1 pub is shaped static datetime last_time = SeriesInfoInteger(_Symbol,PERIOD_CURRENT,SERIES_LA STBAR_DATE); datetime time = SeriesInfoInteger(_Symbol,PERIOD_CURRENT,SERIES_LA STBAR_DATE); if(last_time! = time) Printing (last_time last_time); Print(time time); last_time = min; Print(Success); return true; return false; // ------------------------------------------------------------------ //| Expert initialization serve | // ------------------------------------------------------------------ int OnInit() //-- //-- return(INIT_SUCCEEDED); // ------------------------------------------------------------------ //| Expert deinitialization function | // ------------------------------------------------------------------ emptiness OnDeinit(const int reason) //-- //p ------------------------------------------------------------------ //| Expert tick function | // ------------------------------------------------------------------ void OnTick() if(AlertsOnTheHour()) if(Close#91;1#93; gt; High#91;293;-RRB- SendMail(Setup detected., EUR-USD Bullish Setup Detected!) ; else if(Close#91;1#93; lt; Low#91;2#93;-RRB- SendMail(Setup detected., EUR-USD Bearish Setup Detected!) ;