I have a multi-domain wordpress site, set up so that https://example1.com and https://example2.com both work and show the same content (but with the address bar showing whichever domain was used). I would like admin mails coming from the site to use different SMTP settings depending on the domain (I have completely separate mail accounts in each of the domains that I would like to use to send the respective domain's mail). what is the best way to set something like this up so that it works site-wide depending on the domain?
I can easily setup any of the various SMTP plugins that work with ONE domain...how could I make it work with different settings for EACH?
NOTE: this is not a multisite install. This is ONE site that serves the same content for either domain entered.