Training

When: Every first Sunday of every month -get a ticket- from $15 (Click Here).

Monday, September 23, 2013

Wordpress change email

The third option is my favourite and comes from Deluxe Blog Tips. I prefer to keep all my tweaks in one functions.php file as later I can easily reuse them on another project.
So how do we do this.
First of all you need to find and open functions.php file – it should be in your template folder.
Open it and either at the beginning or the end (as you prefer) – paste the following code:
?
01
02
03
04
05
06
07
08
09
10
11
/** changing default wordpres email settings */
 
add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');
 
function new_mail_from($old) {
 return 'your email address';
}
function new_mail_from_name($old) {
 return 'your name or your website';
}
Obviously you have to replace ‘your email address’ with your actual address, and ‘your name or your website’ with the name that you want to appear as FromName on all messages.

Source: http://www.artishock.net/wordpress/how-to-change-wordpress-default-email-from-name-and-from-address/