You can use the following two hooks to change name and email address
Use the following in your active theme’s functions.php
file.
add_filter( 'wp_mail_from', 'wpse_new_mail_from' );
function wpse_new_mail_from( $old ) {
return 'your email address'; // Edit it with your email address
}
add_filter('wp_mail_from_name', 'wpse_new_mail_from_name');
function wpse_new_mail_from_name( $old ) {
return 'your name or your website'; // Edit it with your/company name
}
Related Posts:
- Emailing passwords: Setup installed on home server using XAMPP
- Sending multipart (text/html) emails via wp_mail() will likely get your domain banned
- How to set SMTP programmatically
- Disable user registration password email
- Do something after sending email
- Missing URL in password reset email
- Customizing lost password email
- Include HTML template file in wp_mail
- Email sent from WordPress has HTML tags
- Few chars getting replaced with ‘=’ in mail content in wp_mail()
- Locked out of my own blog and password reset not working
- wp_mail recipient array not sending?
- Change Password notification text on mail
- On form submission how to send 2 email to different users
- How to Configure SMTP on wordpress Cant Send Email
- How to add line breaks to $email[‘body’] when using auto_core_update_email hook
- Joining confirmation email
- How to setup SMTP for only one specific wp_mail()
- Must I change the admin user email address while changing the general email address?
- User invite email not delivered – related to subdomain?
- Can I configure WordPress to use postfix without a plugin?
- Email ‘from address’ has a www in it
- Trigger WordPress Actions from Email?
- PHP mail() works but wp_mail() does not
- WP mail sent to MS Exchange recipients = occasional email corruption?
- WordPress unable to send mail
- Not able to send links in email after setting header
- Mail function is not working
- Send bulk emails without timeout
- What is the best way to send out thousands of emails from a WordPress site? [closed]
- Change the Sender(not From) on wp_mail() function [closed]
- Prevent sending emails on user creation in OOP context?
- WordPress email could not be sent
- Send email daily using `wp_mail`
- Requiring wp-login.php sends headers automatically
- wp_mail() won’t send mail when it’s a variable, only when hard coded
- Resend password chosen by WP administrator? [duplicate]
- Changed my email. Locked out
- Send email for confirmation during user registration
- Changing old email to new email, lost the password
- Images in wp_mail not showing
- Why would it take four reset password attempts to finally get the e-mail?
- Sending a password reset link
- Email sent from WordPress has HTML tags
- wp_mail send multiple emails in a loop
- Can’t change headers / From for wp_mail()
- How can I remove the product short description from the WooCommerce Mails?
- forgot password page with expiry link email of 60 minutes
- New user notification issue
- Why do WordPress emails to multiple recipients include \n in the list
- wp_mail() not sending emails with ajax
- wordpress wp mail not changing sender mail
- Whitelist email sent by WordPress
- WP Mail isn’t sending user account messages, does send from plugins
- Asynchronous emailing
- Send email from WordPress
- Filter “wp_mail” – How to distinguish between a WordPress system email and a plugin email?
- password reset link not being sent
- Send and receive emails with wp_mail() for WP User (like Mailserver)
- SMTP connect() failed PHPmailer – PHP
- What is the difference between ports 465 and 587?
- Email validation in Ruby on Rails?
- Is there a way to embed an iframe in an email with text that updates?
- Why won’t wp_mail() let me set the From: header when plain old PHP mail() will?
- changing notification emails from WordPress @mydomain.net to something else
- WordPress refuses to send mail, “…your host may have disabled the mail() function”
- Alert Email when any Post or Page is Changed
- How do I customise the new user welcome email
- How do you update user_email on the front end in WP 3.3?
- User Without Email?
- How to add headers to outgoing email?
- “Reply-to Address” Email
- prevent users from changing their email address
- wp_mail and BCC headers
- Editing ‘Password Reset’ E-mail
- Disable new user notification to admin email
- Allow Duplicate Email Address for Different Users
- How do I override the Message-ID header of wp_mail function?
- Email confirmation on registration
- wp_mail script with jQuery post
- How to apply the “retrieve_password_message” filter?
- wp_mail – Remove sitename from email subject
- Mail will not send in HTML
- Create custom welcome email without a plugin
- How to disable automated E-Mail on PHP error/exception?
- How do i send mail with custom Form Data using WordPress
- Email as Username in registration
- How can I modify the default reset (lost) password email text?
- Email stats at Ma.tt contact form
- Fwd: [Website Name] Notice of Email Change [closed]
- Send all WPMU emails via SMTP
- Send mail to wordpress admin
- Send a confirmation of user role upgrade conditionally
- WP Cron emails not working
- Dynamically send pdf attached to post with contact form 7 [closed]
- Need to manually regsiter user, send the password and retreive their user ID
- wp_mail not recognizing cc and bcc headers
- Transferring contact form input to an email account without using an email-proxy
- Should I use the standard wp_mail() function for a premium theme?
- WooCommerce lost password reset flow not working with SendGrid (redirect loop)