[email protected] after user sign up

Discussion in 'ClassiCraft WordPress Theme' started by benchie2k3, Apr 21, 2016.

  1. benchie2k3

    benchie2k3 New Member

    Joined:
    Feb 13, 2016
    Messages:
    29
    Likes Received:
    0
  2. priya

    priya Guest

    Hello,

    Greetings from InkThemes!

    Please paste the code given below in "function.php" file of your theme...
    PHP:
     /* auto-detect the server so you only have to enter the front/from half of the email address, including the @ sign */
     
    function xyz_filter_wp_mail_from($email){
     
    /* start of code lifted from wordpress core, at http://svn.automattic.com/wordpress/tags/3.4/wp-includes/pluggable.php */
     
    $sitename strtolower$_SERVER['SERVER_NAME'] );
     
    if ( 
    substr$sitename0) == 'www.' ) { 
      
    $sitename substr$sitename); 
    }
     
    /* end of code lifted from wordpress core */
     
    $myfront "info@";
    $myback $sitename;
    $myfrom $myfront $myback;
    return 
    $myfrom;
    }
     
    add_filter("wp_mail_from""xyz_filter_wp_mail_from");
    Hope it will resolve your issue

    Do let me know if you need more assistance,

    Thanks & Regards!
    Priyanka
    InkThemes.com
     

Share This Page