Wp Change From Email Address And From Name

How-to-Create-Registration-Form-in-Wordpress-Without-Plugin_.png

As we know by default WordPress uses <wordpress@domain-name.com> for from email address and WordPress form From Name.

If you want to change default From email address and From Name,then you can easily change by using filter hooks wp_mail_from and wp_mail_from_name respectively.

From email address:

add_filter( 'wp_mail_from', 'from_email_address' );
function from_email_address( $email_address ) {
	$from_email = 'info@developergang.com'; // add your from email address here
	return $from_email;
}

From Name:

add_filter( 'wp_mail_from_name', 'mail_from_name' );
function mail_from_name( $from_name ) {
     $name = 'Developer Gang'; // add your form name here
	return $name;
}

List your article for Tech Blogs Write For Us at Developer Gang.