Are there any best practices for ensuring proper line breaks in text emails when using PHP?

When sending text emails using PHP, it's important to ensure proper line breaks to maintain readability and formatting. One common approach is to use the PHP `wordwrap()` function to break lines at a specified length, typically 70-80 characters. This function will insert line breaks where necessary without breaking words.

// Example of using wordwrap() to ensure proper line breaks in text emails
$message = "This is a long message that needs to be wrapped to ensure proper line breaks in the email.";
$wrapped_message = wordwrap($message, 70, "\r\n");

// Send the email with the wrapped message
mail('recipient@example.com', 'Subject', $wrapped_message);