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
- changing notification emails from WordPress @mydomain.net to something else
- Alert Email when any Post or Page is Changed
- prevent users from changing their email address
- wp_mail and BCC headers
- Allow Duplicate Email Address for Different Users
- How do I override the Message-ID header of wp_mail function?
- WP Cron emails not working
- Need to manually regsiter user, send the password and retreive their user ID
- WooCommerce lost password reset flow not working with SendGrid (redirect loop)
- Email notification after registration in WordPress
- Processing a subscription form with POST method?
- WordPress E-mail Config
- Right practice to edit WP reset password email
- wp_mail not sending attachment
- Limit number of emails per second
- Throttling email frequency
- Multisite not using subdomains as hostname in from address when sending emails
- wp_mail_from is ignored
- PAGE Specific Email Notifications
- How to edit the WordPress e-mail that gives the user their password? [duplicate]
- Do action for only switch status for publish_post
- How can I change the email that is inside the default email texts of wordpress?
- Programming WordPress to Send an Email on Registration Form Submit?
- How do I troubleshoot registration/password email errors?
- Does WordPress require port 25 for email?
- Is there a plugin that will let you do actions by mail? [closed]
- Changing email “From” address
- Add “Email Image” button with Hyperlink for individual images [closed]
- Mail through Cron Execution does not work!
- Need to suspend RSS feed while repairing missing old post
- Send user auto generated password on different email
- Activation email to change admin address not being sent to Gsuite email account
- Send email with Content-Type text/plain
- How to change lost password email text using custom plugin wordpress?
- I need to verify emails when users signup
- Where is the account email address located?
- changing notification emails from WordPress @mydomain.net to something else
- Send Bulk Email without them going to spam
- How can I send an email 24 hours after first email?
- Duplicate notifications for new user registration
- get_post_meta is always empty when I use wp_mail
- What’s the simplest way to send WordPress posts to a Mailchimp list? [closed]
- How to add verification on email address change?
- Is there a wordpress function restrict public email id for registration like as is_email()