WordPress.org

Ready to get started?Download WordPress

Forums

Email Alerts
Change email address (2 posts)

  1. Atlanta
    Member
    Posted 1 year ago #

    Hi, the plugin works with wp3.4.1, nice. Thanks.

    Where do I change the From email address? It says WordPress...

    http://wordpress.org/extend/plugins/email-alerts/

  2. Daniele Raimondi
    Member
    Posted 1 year ago #

    It's really a matter of 5 minutes. Just add those 2 filters in your theme functions.php:

    Filtering the email address
    Add a filter for the email address using ‘add_filter’:

    add_filter( 'wp_mail_from', 'my_mail_from' );
    function my_mail_from( $email )
    {
        return 'myemail@mydomain.com';
    }

    Filtering the email name
    Now add a filter for the name of the email address:

    add_filter( 'wp_mail_from_name', 'my_mail_from_name' );
    function my_mail_from_name( $name )
    {
        return 'My Name';
    }

    Source: http://butlerblog.com/2011/07/08/changing-the-wp_mail-from-address-in-wordpress-without-a-plugin/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic