Title: Multisite
Last modified: August 21, 2016

---

# Multisite

 *  Resolved [WebNashr](https://wordpress.org/support/users/webnashr/)
 * (@webnashr)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/multisite-145/)
 * In multisite if email is always sent with the name and short describtion of the
   main site that is great.
 * [http://wordpress.org/plugins/personal-email/](http://wordpress.org/plugins/personal-email/)

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

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/multisite-145/#post-4466188)
 * This plugin is designed as a drop-in solution to do a specific thing. If you 
   want to change what it does, just edit it.
 * I recommend you uninstall Personal Email and use this code [as a network-wide snippet](http://wordpress.org/plugins/code-snippets/)
   or a [custom mu-plugin](http://codex.wordpress.org/Must_Use_Plugins):
 *     ```
       function webnashr_email_from( $from_email ) {
   
       	/* Calculate the default address */
       	$sitename = strtolower( $_SERVER['SERVER_NAME'] );
   
       	if ( 'www.' === substr( $sitename, 0, 4 ) ) {
       		$sitename = substr( $sitename, 4 );
       	}
   
       	/* Check that we don't effect emails not sent with the default address */
       	if ( 'wordpress@' . $sitename === $from_email ) {
       		$from_email = 'your-email-here@example.com';
       	}
   
       	return $from_email;
       }
   
       add_filter( 'wp_mail_from', 'personal_email_from' );
   
       function webnashr_email_from_name( $from_name ) {
       	if ( 'WordPress' === $from_name ) {
       		$from_name = 'Enter custom from name here';
       	}
       	return $from_name;
       }
   
       add_filter( 'wp_mail_from_name', 'personal_email_from_name' );
       ```
   
 * Remember to replace `your-email-here@example.com` with the email address you 
   want emails sent from and `Enter custom from name here` with the name you want
   emails sent from.
 *  Thread Starter [WebNashr](https://wordpress.org/support/users/webnashr/)
 * (@webnashr)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/multisite-145/#post-4466191)
 * Thank you very much

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

The topic ‘Multisite’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/personal-email.svg)
 * [Personal Email](https://wordpress.org/plugins/personal-email/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/personal-email/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/personal-email/)
 * [Active Topics](https://wordpress.org/support/plugin/personal-email/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/personal-email/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/personal-email/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [WebNashr](https://wordpress.org/support/users/webnashr/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/multisite-145/#post-4466191)
 * Status: resolved