Replies: 0
Hello,
I have a multisite installation of wordpress.
On the main blog, WP Mail SMTP is not enabled. On the sub blogs, it is enabled with different configurations.
I have a webhooks system, received on the main blog. Depending on datas i wan’t to send e-mails with the sub blogs configuration, so i use switch_to_blog function just before sending e-mails via wp_mail. My problem is that doing this, the WP Mail SMTP configuration of the sub blog (Mailgun) is not used, my e-mails are sent using the main blog configuration (sendmail).
Am i doing something wrong ? Or what i am trying to do is not possible ?
Thank you.