Title: Sending e-mails on multisite
Last modified: November 4, 2021

---

# Sending e-mails on multisite

 *  Resolved [florianfls](https://wordpress.org/support/users/florianfls/)
 * (@florianfls)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sending-e-mails-on-multisite/)
 * 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.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sending-e-mails-on-multisite/#post-15046242)
 * Hi [@florianfls](https://wordpress.org/support/users/florianfls/),
 * Thanks for reaching out and sharing the details. While I’m not super familiar
   with ‘switch_to_blog’, it sounds possible to achieve what you’re trying to do.
   Could you please share how are you using Sendmail in the main blog and try without
   any SMTP set up in the main blog?
 * Regards,
 *  Thread Starter [florianfls](https://wordpress.org/support/users/florianfls/)
 * (@florianfls)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sending-e-mails-on-multisite/#post-15046805)
 * Hi [@sanzeeb3](https://wordpress.org/support/users/sanzeeb3/) and thank you for
   you reply.
 * In the main blog, WP Mail SMTP was not activated, so it was the default WordPress
   behaviour. I just tried to activate it on the main blog too and to configure 
   it using no mailer (Default). It is now working when i manually switch blogs.
 * Thank you !
 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sending-e-mails-on-multisite/#post-15047093)
 * Hi [@florianfls](https://wordpress.org/support/users/florianfls/),
 * That’s great. Thank you for the update!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Sending e-mails on multisite’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/sending-e-mails-on-multisite/#post-15047093)
 * Status: resolved