We are currently running our ruby on rails application with SendGrid for sending emails. We have authenticated two subdomains in our SendGrid account:
- test1.mydomain.com
- test2.mydomain.com
Currently the default domain for sending emails is test1.mydomain.com
which is configured in SendGrid.
But we want to send few emails from the subdomain test2.mydomain.com
and others from test1.mydomain.com
. Is it possible to send emails from different domains from a ruby on rails application?