PHP Texts Not Being Sent [SOLVED]
Posted: Mon Sep 01, 2025 7:10 pm
I have used a POST method of sending PHP texts for several years and for some reason I can no longer do so. Here is an example of the POST code that I have used:
If I simply refresh the PHP script file in the includes folder the text will be sent and received. From this I am certain that all of the PHP script is correct as well as the T-Mobile SMS Gateway Domain which is 'cell#@tmomail.net'. Neither the code nor the PHP script has been modified in any way to prevent the texts from being sent. This used to work perfectly.
Previously I was using CenturyLink for internet service and Verizon as my cell service provider. I am now using StarLink for internet and T-Mobile for cell service. I keep suspecting that StarLink is the problem but I cannot prove that. Since installing StarLink I have received emails/texts but this may not be related to my Arduino text problem.
My PHP script makes use of the PHP mail() function which I have read is usually blocked by hosting services due to it being abused by spammer's. I have checked with my hosting service and was told that that PHP function has not been blocked in any way.
If anyone has any idea what may be causing this I'm all ears.
Thank you,
Code: Select all
void loop() {
postData = postVariable + "99";
{
if (client.connect(server, portNumber))
{
client.println("POST /includes/simple_text.php HTTP/1.1");
client.println( "Host: www.myWebSite.com" );
client.println( "Content-Type: application/x-www-form-urlencoded" );
client.print("Content-Length: ");
client.println(postData.length());
client.println();
client.print(postData);
Serial.println(postData);
Serial.println("TEXT Sent");
}
if (client.connected()) {
client.stop();
}
delay(60000);
}
Serial.println(postData);
delay(10000);
}Previously I was using CenturyLink for internet service and Verizon as my cell service provider. I am now using StarLink for internet and T-Mobile for cell service. I keep suspecting that StarLink is the problem but I cannot prove that. Since installing StarLink I have received emails/texts but this may not be related to my Arduino text problem.
My PHP script makes use of the PHP mail() function which I have read is usually blocked by hosting services due to it being abused by spammer's. I have checked with my hosting service and was told that that PHP function has not been blocked in any way.
If anyone has any idea what may be causing this I'm all ears.
Thank you,