How can one add line breaks in the text generated for emails in PHP?

To add line breaks in the text generated for emails in PHP, you can use the "\r\n" characters to represent a line break. This will ensure that the text is displayed with proper formatting when the email is sent.

// Sample PHP code snippet to add line breaks in email text
$email_body = "Hello, \r\nThis is a sample email message with line breaks. \r\nThank you.";

// Send the email with line breaks
mail('recipient@example.com', 'Subject', $email_body);