I'm thinking of using a ethernet arduino as a water leak detector (sponges with stainless steel probes with one side having a resistor and the other side going to a digital input).
But I want it to be able to send my phone an SMS if there is a leak detected and also a daily sms so I know everything is working.
I looked around and found
http://txtdrop.netThey let you send an sms via a web form.
after looking over some old threads
Here is the text of the form at txtdrop.net
<table width="382" height="100" border="0" cellpadding="2" cellspacing="0">
<td width="120"><tr>
<form action="" method="post" form name="tabform">
<td width="158">From:</td>
<td width="179"><div align="center">
<input type="text" name="name" id="name" size="24" maxlength="21" />
</div></td>
</tr>
<tr>
<td>To:</td>
<td width="258">
<input name="number" type="text" id="number" size="13" onKeyup="autotab(this, document.tabform.body)" maxlength="13" /></td>
</tr>
<tr>
<td>Carrier:</td>
<td>
<select name="carrier" id="carrier" class="style3">
<option value="38"> AT&T Wireless</option>
</select></class></td>
</tr>
<tr>
<td>Message:</td>
<td><textarea name="body" cols="28" rows="3" wrap="PHYSICAL" class="style4" id="textarea" onkeyup="onTypeNotes()"></textarea></td>
</tr>
<tr>
<td> </td>
<td>
<input type="hidden" name="submitted" value="1"> <input type="submit" name="submit" value="Send" /></td>
So I can up with:
client.println("POST HTTP/1.1")
client.println("Host:
www.mysite.com")
client.println("User-Agent: Mozilla/4.0")
client.println("Content-Length: 39") // Change to be number of characters in POST line between quotes
client.println("Content-Type: application/x-www-form-urlencoded")
client.println("name=yes@no.com&number=1234567890&carrier=38&textarea=HELP!! Water leak in BASEMENT SENSOR #1&submit=Send");
Is this right?
does the "submit=Send" have to be in there?
Thanks