When building an email service, a few subrequests per mail send from a Worker acting as an SMTP server will be cheaper than the extra $ per millon mails for the API at MailGun/MailChannels/SES.
For incoming emails, Cloudflare Email Workers are $0 per email and SendGrid is also $0 per email. We only pay for the cost of the Worker with this setup.