def generate_outgoing_message(to, from_, body): # to and from_ should be 10 digit phone number strings with a '+' preceding the number message = Message() message.sms_to = to message.sms_from = from_ message.sms_body = body message.save()