MODX supports sending email over SMTP. To have MODX relay email through SendGrid go to System Settings > 'Mail' area and change:
apikey
The following image shows these settings.