Allwebtuts

Menu
  • Home
  • About us
  • Contact Us
  • Php
  • HTML
  • WordPress
  • Blogger
Home
Plugins
How to Change WordPress default from email and name without plugin

How to Change WordPress default from email and name without plugin

Santhosh veer Last Updated: October 27, 2016 Plugins, Wordpress

How to Change WordPress default from email and name without plugin

This tutorial we are going to see about How to Change WordPress default from email and name Normally WordPress have Default from Email address and its look like this wordpress@website.com.

How to Change WordPress default from email and name

  • it not looking professional
  • spam filter Consider this as spam mail

WordPress using wp_mail() function for this Process

Here is the solution for this

WordPress have wp_mail_from and wp_mail_from_name Hook Functions

  • wp_mail_from – From Mail Address
  • wp_mail_from_name – From Name

we can use the two Hook functions to change the From mail and name

Just copy and paste the Below code on your theme’s functions.php file

// Function to change email address

function awts_sender_email( $myown_email_address ) {
 return 'santhosh@example.com';
 }

// Function to change sender name
 function awts_sender_name( $myown_email_from ) {
 return 'Santhosh';
 }

// Hooking up our functions to WordPress filters
 add_filter( 'wp_mail_from', 'awts_sender_email' );
 add_filter( 'wp_mail_from_name', 'awts_sender_name' );
  • Replace santhosh@example.com and Santhosh with your From email and name

How to Change WordPress default from email and name

  • That’s all successfully we Change the Sender Name and Email in Outgoing WordPress Email

If you have doubts in this topic Please feel free to comment here.

Read – Redirect the users to Thank you page after commenting 



Was this article helpful?
Yes, thanks!
Not really
Thanks!

Your feedback helps us improve Allwebtuts.com





Related Posts

How to Find Widget ID in WordPress without a plugin

How to Find Widget ID in WordPress without a plugin

Responsive Adblock Notification Bar Without a Plugin

Responsive Adblock Notification Bar Without a Plugin

WordPress Plugin To insert an HTML Widgets in Posts

WordPress Plugin To insert an HTML Widgets in Posts

About The Author

Santhosh veer

Blogger - Web Developer - Open Source Lover

Free Email Updates

Latest Offers

BlackFriday Offer
allwebtuts

Mythemeshop

Grab Any Themes and plugins for just $19
Get This Deal

Join with us

Allwebtuts Copyright © 2023.
Cloudways + Schema Theme + KeyCDN - Privacy Policy - Cookie Policy