How can the use of string concatenation in PHP code impact the formatting of email content, especially in relation to line breaks?

When using string concatenation in PHP code to build email content, line breaks may not be preserved properly, resulting in a messy or unreadable email format. To ensure that line breaks are maintained, you can use the PHP_EOL constant to represent the correct end-of-line character based on the server's operating system. This will help maintain the formatting of the email content regardless of the platform it is viewed on.

$emailContent = "Hello," . PHP_EOL;
$emailContent .= "This is a test email." . PHP_EOL;
$emailContent .= "Thank you." . PHP_EOL;

// Send email with $emailContent