I want to send a csv every day in an email. I have the csv data as a string field from a private API and I cannot make the API public.
Gmail takes in a file object.
So, how does one take that string into a file object and give it a name which gmail can attach?