I have following code which gives me a csv file:
def main(args):
data = get_data()
csv_output = get_csv_file_data(data)
return {'body': csv_output.getvalue(),
'headers': {'Content-Type': 'text/csv',
'Content-Disposition': 'attachment;filename=myfilename.csv'}}
Is there a way in IBM cloud that I can send this CSV file as an email within a function?