.sendmail(fromm, [to], mail.as_string [...] .get_device_identification() print("{0}- {1} {2}".format [...] mail["To"] = to #