# File app/controllers/admin/sms_on_rails/outbounds_controller.rb, line 104
  def deliver_sms(success_message = nil)
    @outbound ||= SmsOnRails::Outbound.find(params[:id])
    respond_to do |format|
      if @outbound.deliver(:fatal_exception => nil)
        flash[:notice] = success_message || 'Outbound SMS was successfully sent'
        format.html { redirect_to(sms_draft_outbound_path(@outbound)) }
        format.xml  { head :ok }
      else
        format.html { render :action => :edit }
        format.xml  { render :xml => @outbound.errors, :status => :unprocessable_entity }
      end
    end
  end