I have created a blog website at careerdemo.com
and installed WordPress to run it.
When a person signs up, they get an email from the address [email protected]
(this is, I guess, a default setting in WordPress).
I want to change that, so that e-mails come from my own address,[email protected]
. (So any new user will get e-mails from my own e-mail address, [email protected]
.) How do I customize my FROM e-mail address?
1 Answer
Add the following to your functions.php:
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';
}