0

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?

NoviceMe
  • 3,126
  • 11
  • 57
  • 117

1 Answers1

1

IBM Cloud does not provide an email service as part of its platform services (IBM Cloud cata), but you could use SendGrid, either directly SendGrid or through the classic infrastructure services on IBM Cloud.

This code sample, OpenWhisk Contact, uses SendGrid for sending out email with IBM Cloud Functions.

data_henrik
  • 16,724
  • 2
  • 28
  • 49