After a user signs up he receives a welcome email from [email protected]. How can this email be changed to be [email protected]?
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( $sitename, 0, 4 ) == 'www.' ) { $sitename = substr( $sitename, 4 ); } /* 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