Return to Snippet

Revision: 52361
at October 21, 2011 02:26 by florent


Initial Code


1	<?php
2	    function mail_from() {
3	        $emailaddress = '[email protected]';
4	        return $emailaddress;
5	    }
6	 
7	    function mail_from_name() {
8	        $sendername = "1stWebDesigner.com - Dainis";
9	        return $sendername;
10	    }
11	 
12	    add_filter('wp_mail_from','mail_from');
13	    add_filter('wp_mail_from_name','mail_from_name');
14	?>

Initial URL


Initial Description


Initial Title
Adjust from name and email for wp_mail()

Initial Tags
email, wordpress

Initial Language
PHP