rem_email_headers

This filter can be used to define custom headers for the emails sent through Real Estate Manager.

Arguments

  1. Headers [Array]

Reset Headers

The following code will set the headers to default. If you’re not receiving any email upon agent registration, property submission, or agent contact form, paste the following code in your theme’s functions.php file and it may fix that issue.

add_filter( 'rem_email_headers', 'rem_fix_emails', 10, 1 );

function rem_fix_emails($headers){
	return array();
}

 

Redefine Headers

You can use the following code in your theme’s functions.php file to define the headers (Sender Name, Email, etc). Change them accordingly

add_filter( 'rem_email_headers', 'rem_email_headers_custom', 10, 1 );

function rem_email_headers_custom($headers){
    $headers = array();
    $headers[] = "From: {sender_name} <{sender_email}>";
    $headers[] = "Content-Type: text/html";
    $headers[] = "MIME-Version: 1.0\r\n";
    return $headers;
}