lots0logs
3/2/2016 - 9:00 PM

WordPress :: Divi Builder :: Contact Form Module :: Change the "From:" address to the same domain as website.

WordPress :: Divi Builder :: Contact Form Module :: Change the "From:" address to the same domain as website.

<?php

function my_et_contact_page_headers( $headers, $contact_name, $contact_email ) {
	
	/* ==================================================================
	 * >>>> Replace the "your-domain" below with your actual domain. <<<< 
	 * ==================================================================
	 */ $from = 'noreply@your-domain.com';
	 
	 $headers[0] = "From: \"{$contact_name}\" <{$from}>";
	 
	 return $headers;
}
add_filter( 'et_contact_page_headers', 'my_et_contact_page_headers' );