Email Alerts
Change email address (2 posts)

  1. Atlanta
    Posted 3 years ago #

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

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


  2. Daniele Raimondi
    Posted 3 years 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

  • Email Alerts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic