From Email Address in Notifications
-
I use the following snippet in order to change WordPress default FROM email address.
add_filter('wp_mail_from', 'new_mail_from'); add_filter('wp_mail_from_name', 'new_mail_from_name'); function new_mail_from($old) { return '[email protected]'; } function new_mail_from_name($old) { return 'yourdomain.com'; }
Because of this piece of code, the FROM field in Notifications does not work. Whatever email address you put in there, the email is always send from the address in the above snippet.
Is there a way to still use the snippet, but with an exception for the Advanced Forms FROM field?
Thanks in advance!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘From Email Address in Notifications’ is closed to new replies.