def smart_email_send(self, smart_email_id, to, consent_to_track, cc=None, bcc=None, attachments=None, data=None, add_recipients_to_list=None):
        """Sends the smart email."""
        validate_consent_to_track(consent_to_track)
        body = {
            "To": to,
            "CC": cc,
            "BCC": bcc,
            "Attachments": attachments,
            "Data": data,
            "AddRecipientsToList": add_recipients_to_list,
            "ConsentToTrack": consent_to_track,
        }
        response = self._post("/transactional/smartEmail/%s/send" %
                              smart_email_id, json.dumps(body))
        return json_to_py(response)
def smart_email_send ( self , smart_email_id , to , consent_to_track , cc = None , bcc = None , attachments = None , data = None , add_recipients_to_list = None ) : validate_consent_to_track ( consent_to_track ) body = { "To" : to , "CC" : cc , "BCC" : bcc , "Attachments" : attachments , "Data" : data , "AddRecipientsToList" : add_recipients_to_list , "ConsentToTrack" : consent_to_track , } response = self . _post ( "/transactional/smartEmail/%s/send" % smart_email_id , json . dumps ( body ) ) return json_to_py ( response )
Sends the smart email.