How can PHP code within an included file be executed and displayed correctly in the email body using PHP?

When including PHP code in an email body, the code needs to be executed before being displayed. To achieve this, you can use the `ob_start()` and `ob_get_clean()` functions to capture the output of the included file and then insert it into the email body.

ob_start();
include 'included_file.php';
$included_content = ob_get_clean();

// Now you can use $included_content in your email body