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,