fixed sendgrid api call in file