You will need an internet based SMS gateway provider like clickatell.com. From there you will need to use wininet.dll and have a script that can make HTTP POST to a url. From here its just simple when conditions are right in your EA it should make a HTTP POST to the gateway provider's API with the details e.g. message, recipients mobile number etc but they charge for the SMS so you'll have to buy an SMS bundle online e.g. 10,000 smses.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Simply go to XXXXXXXXXXXXXXXX any buy this Script.
Perhaps you missed this when you registered . . .
Look here: https://www.mql5.com/en/users/register
It says . . . "4. Posting of advertising messages is forbidden. "