• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Remove via server name in email

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove via server name in email

This topic is: resolved
  • This topic has 1 reply, 1 voice, and was last updated 8 years, 11 months ago by BP.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • June 25, 2016 at 1:22 pm #188295
    BP
    Member

    How do you remove, block, or change the Mailed-by server name and the viaserver name in emailed posts or others?

    I'm currently successfully using the following code in functions.php to change the "from" email address. Is there something I can add to it to change the mailed-by and via server names?

    function my_from_email( $email ) {
    return '[email protected]';
    }
    add_filter( 'wp_mail_from', 'my_from_email' );


    Brad

    July 2, 2016 at 8:28 am #188762
    BP
    Member

    Here's the solution.
    I got it from Jeremy Herve, JetPack Mechanic, via WordPress forum.

    The wp_mail filter allows you to customize each one of the arguments passed to the wp_mail function in WordPress:
    https://developer.wordpress.org/reference/hooks/wp_mail/
    You could consequently use it to customize the email headers and change Mailed-by. However, it's worth noting that your changes will apply to all emails sent by WordPress, regardless of the plugin you use.
    I hope this helps.


    Brad

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Remove via server name in email’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble