def sms(phone_number, msg, provider=None):
 if (provider is None):
  assert (_voice is not None), 'You must login to Google Voice using google_voice_login before sending an sms without the provider parameter.'
 if (provider is not None):
  assert (_smtp is not None), 'You must login to an SMTP server using gmail_login or by passing an smtplib.SMTP instance via the smtp parameterbefore sending an sms with the provider parameter.'
 if (provider is None):
  _google_voice_sms(phone_number, msg)
 else:
  to = ('%s@%s' % (phone_number, providers.get(provider, provider)))
  _send_email('', to, ('To: %s\r\n\r\n%s' % (to, msg)))

def sms ( phone_number , msg , provider = None ) : if ( provider is None ) : assert ( _voice is not None ) , 'You must login to Google Voice using google_voice_login before sending an sms without the provider parameter.' if ( provider is not None ) : assert ( _smtp is not None ) , 'You must login to an SMTP server using gmail_login or by passing an smtplib.SMTP instance via the smtp parameterbefore sending an sms with the provider parameter.' if ( provider is None ) : _google_voice_sms ( phone_number , msg ) else : to = ( '%s@%s' % ( phone_number , providers . get ( provider , provider ) ) ) _send_email ( '' , to , ( 'To: %s\r\n\r\n%s' % ( to , msg ) ) )
sends an sms message to phone_number with a message containing msg .