There was an error sending your message: Syntax error, command unrecognized. The server response was: 4.3.2 STOREDRV.ClientSubmit; sender thread limit exceeded <261e6917-d1e9-4779-8f30-97af544e1ed9@VI1PR03MB2928.eurprd03.prod.outlook.c om> [Hostname=VI1PR03MB2928.eurprd03.prod.outlook.com]
A few seconds later, the email is sent and received correctly as expected, however, this earlier error annoys me and I'd like to know if there's something wrong with the code that generates it or if it's something related to live.com server. I think that syntax is corrected cause it's just strings but perhaps there's any kind of issue with the size. Here it's:
protected override void OnConnectionStatusUpdate(ConnectionStatusEventArgs connectionStatusUpdate) { if( connectionStatusUpdate.Status != ConnectionStatus.Connected || connectionStatusUpdate.PriceStatus != ConnectionStatus.Connected ) { SendMail ("[email protected]", "DISCONNECTION ! ", "Server failure!, dataserver=0"); dataserver=0; } if( (connectionStatusUpdate.Status == ConnectionStatus.Connected && connectionStatusUpdate.PriceStatus == ConnectionStatus.Connected) && (connectionStatusUpdate.PreviousStatus != ConnectionStatus.Connected || connectionStatusUpdate.PreviousPriceStatus != ConnectionStatus.Connected) ) { if ( Position.MarketPosition != PositionAccount.MarketPosition || Position.Quantity != PositionAccount.Quantity ) { [B]SendMail ("[email protected]", "UNSYNCED ! ", Position.MarketPosition.ToString() + " " + Position.Quantity.ToString()+" StrategyPosition vs AccountPosition " +PositionAccount.Quantity.ToString());[/B] } dataserver=1; } }
Comment