@droopsnoot Thank you for you response to my query. I will answer your questions as best I can.
“What debugging have you done?”
I could write a book on this but the things that can prevent a text from being sent from a PHP file are: (1) wrong cell number, (2) wrong SMS Gateway Domain email address and (3) an incorrect PHP file. Each of these has been double-checked and verified. The fact that I can receive the text from this PHP file by simply refreshing a webpage which includes this PHP file tells me that the the PHP file is correctly scripted;
“Presumably your Arduino code would normally call that same web page to send the text, so what is different?'“
Nothing has changed. The MCU in the well house calls the same PHP file as does my workbench Arduino MCU. Here is a code line of one of the PHP files being called by the well house Arduino sketch:
client.println(“POST /includes/north_dailyText.php HTTP/1.1”);
This particular PHP file is in the water coop’s web server website. I created and maintain the website. No one else can access these files;
“Is the PHP file yours, or someone else’s site that you are calling?”
I just answered that above;
“If it’s yours, what’s the difference between the Arduino sketch calling it, and you opening it manually, when debug it line by line?”
There is no difference other than my workbench MCU triggers the PHP file after I comment out all of the maintenance workers cell phone number’s from the PHP file so as not to bother them with my testing;
“Has the server running the PHP code been changed to require a https connection, for example, and your Arduino code is opening a http one?”
I setup the coop’s website as an https site. No one can modify that in any way;
“Is the PHP code checking for the user-agent to make sure it’s a browser connection?”
No. That has not been done. I never thought to do so and should learn to do that.
Lastly, while I have said “nothing has changed …” several times I am aware that something has changed - somewhere, somehow. For the sake of clarity: the well house is on a different wifi/internet service that my workbench/home. I use StarLink. I have no idea what service the well house uses. However, the fact remains that neither MCU can send text messages.
I know I am overlooking something and hope to report back with the solution. Soon.
I sincerely appreciate your help.