2

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 wordpress@careerdemo.com (this is, I guess, a default setting in WordPress).

I want to change that, so that e-mails come from my own address,contact@careerdemo.com. (So any new user will get e-mails from my own e-mail address, contact@careerdemo.com.) How do I customize my FROM e-mail address?

migrated from stackoverflow.com Dec 16 '13 at 3:58

This question came from our site for professional and enthusiast programmers.

  • Do you want to customise the e-mail address or the e-mail ID (whatever that means)? Please edit to clarify. – TRiG Dec 10 '13 at 16:16
  • @TRiG question updated very much clear now thanks :) – ashuthinks Dec 10 '13 at 16:27
  • 1
    did you see my answer below? – danyo Dec 10 '13 at 16:37
3

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';
}
  • 1
    Not a problem :) – danyo Dec 10 '13 at 17:12
  • i have created a technical blog+website if you are interested please mail me ashuthinks[at]gmail.com – ashuthinks Dec 10 '13 at 17:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.