add_filter('wp_mail', function($args) { if ( isset($args['message']) && !empty($args['message']) ) { // Look for any line that contains 'email' and an email address if ( preg_match('/email\s*[:\-]?\s*([^\s]+)/i', $args['message'], $matches) ) { $visitor_email = trim($matches[1]); if ( is_email($visitor_email) ) { // Ensure headers exist if ( empty($args['headers']) ) { $args['headers'] = array(); } // Add Reply-To header $args['headers'][] = 'Reply-To: ' . $visitor_email; } } } return $args; });

Download Referral Resources

Download a customizable referral email template and estate planning conversation guide that you can personalize and share with your clients.

Revermann Logo-white

Waite Park Office
Phone: 320-258-9383
130 Division St, Suite 118
Waite Park, MN 56387

Melrose Office
Phone: 320-256-4205
408 Main St. East Unit 5
Melrose, MN 56352

Office Hours:

Monday - Friday: 8 am - 5 pm
Saturday: Closed
Sunday: Closed

All content on this website is intended to be informational only and does not create an attorney-client relationship and does not intend to constitute legal advice.