title: How do I send two SMS messages in a chain to the same receiver with twilio?
body: <p>I am working on a project that returns SMS messages to a user who has just sent a SMS message to the server.</p>
  
  <p>The process is:</p>
  
  <ul>
  <li>The user sends a SMS message to the server.</li>
  <li>The server will send two SMS messages back to this user. Note that these are two separate short messages and will be sent pretty much at the same time.</li>
  </ul>
  
  <p>I've got the sending part working, but just for sending one SMS message, not two. When I add more code to send another message only the second message part works, which means only the second message has been sent out, the first message has been ignored. </p>
  
  <p>The code looks pretty much like:</p>
  
  <pre><code>  else
  sms = SMS.create(:body =&gt; params['Body'], :from =&gt; params['From'], :to =&gt; params['To'], :created_at =&gt; Time.now)
  
    #return a random saved sms
      return_secret = SMS.first(:offset =&gt; rand(SMS.count))
      twiml = Twilio::TwiML::Response.new do |r|
          r.Sms return_secret.body
    #send another message to remind user for rating
      ask_rating = remind_rating
     if ask_rating 
      twiml = Twilio::TwiML::Response.new do |r|
        r.Sms ask_rating
      end
      twiml.text
     end    
  </code></pre>
  
  <p>Does anyone know how to send two messages in Twilio?</p>