<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -52,6 +52,27 @@
             $html = $this-&gt;curl(&quot;https://www.google.com/voice/m/sendcall&quot;, $this-&gt;lastURL, $post);
         }
 
+        public function sms($you, $them,$smtxt)
+        {
+            $you = preg_replace('/[^0-9]/', '', $you);
+            $them = preg_replace('/[^0-9]/', '', $them);
+
+            $html = $this-&gt;login();
+
+            $crumb = urlencode($this-&gt;match('!&lt;input.*?name=&quot;_rnr_se&quot;.*?value=&quot;(.*?)&quot;!ms', $html, 1));
+
+            $post = &quot;_rnr_se=$crumb&amp;number=$them&amp;smstext=$smtxt&amp;submit=Send&quot;;
+            $html = $this-&gt;curl(&quot;https://www.google.com/voice/m/sendsms&quot;, $this-&gt;lastURL, $post);
+
+            preg_match_all('!&lt;input.*?type=&quot;hidden&quot;.*?name=&quot;(.*?)&quot;.*?value=&quot;(.*?)&quot;!ms', $html, $hidden);
+            $post = '';
+            for($i = 0; $i &lt; count($hidden[0]); $i++)
+                $post .= '&amp;' . $hidden[1][$i] . '=' . urlencode($hidden[2][$i]);
+            $post .= &quot;&amp;submit=&quot;;
+
+            $html = $this-&gt;curl(&quot;https://www.google.com/voice/m/sendcall&quot;, $this-&gt;lastURL, $post);
+        }
+
         private function curl($url, $referer = null, $post = null, $return_header = false)
         {
             static $tmpfile;</diff>
      <filename>class.googlevoice.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7748959a3455c536f63638704ca0a428b3dec9c6</id>
    </parent>
  </parents>
  <author>
    <name>Tyler Hall</name>
    <email>tylerhall@gmail.com</email>
  </author>
  <url>http://github.com/tylerhall/google-voice-dialer/commit/7da663de97edc654ede2086beb672147c9755d6d</url>
  <id>7da663de97edc654ede2086beb672147c9755d6d</id>
  <committed-date>2009-09-22T09:41:08-07:00</committed-date>
  <authored-date>2009-09-22T09:41:08-07:00</authored-date>
  <message>Adding SMS contribution from elspub</message>
  <tree>622add4105651a9c459c603b1cae96824601f4ef</tree>
  <committer>
    <name>Tyler Hall</name>
    <email>tylerhall@gmail.com</email>
  </committer>
</commit>
