Customize WordPress Multisite Emails

Our emails were getting flagged as spam and deleted prior to delivery so we tried changing the wording around. It worked for about 30 minutes but you might want to change the wording etc. for a more helpful purpose.

*------------------------------------DEAL WITH OUR EMAIL FILTERING STUFF------------------------------------*/
//deals with filtering application drama from VCU/Cisco for password resets

//one way to write the filter function
add_filter( 'retrieve_password_title',
    function( $title )
        $title = __( 'VCU Ram Pages Reset Request' );
        return $title;

//another way to write the filter function
add_filter("retrieve_password_message", "mapp_custom_password_reset", 99, 4);

function mapp_custom_password_reset($message, $key, $user_login, $user_data )    {

      $message = "Someone has requested a magic login word reset for the following account:

    " . sprintf(__('%s'), $user_data->user_email) . "

    If this was a mistake, just ignore this email and nothing will happen.

    To reset your magic word, visit the following address:

    " . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . "\r\n" . "


    The Humans of Ram Pages";

      return $message;


//more filter options 
add_filter( 'wpmu_signup_blog_notification_subject', 'rampages_activation_subject', 10, 4 );
add_filter( 'wpmu_signup_user_notification_subject', 'rampages_activation_subject', 10, 4 );

function rampages_activation_subject( $text ) {
    return 'Please activate your new Ram Pages account';