To prevent text from breaking into multiple lines and keep it as a "solid" single line, apply the white-space property:
+ $message['headers']['Content-Type'] = 'text/html'; + $message['params']['theme'] = 'contact_storage_mail'; + $message['params'][ text-wrap CSS property - MDN Web Docs
: Set the header to text/html instead of text/plain so the receiver's client renders the HTML properly. Messages html
You're about to view a live demo generated using the MDN Playground. * html. The default behavior; the text in the heading wraps " MDN Web Docs : The Plain Text element (Deprecated) - HTML | MDN
If your goal is to preserve exact formatting—including spaces and line breaks—without the browser collapsing them, use the tag: To prevent text from breaking into multiple lines
: Ensure your system isn't "escaping" characters (turning < into < ), which prevents the browser from reading the tags. 4. Visual "Solid" Styling To make text look visually "solid" or bold:
: Displays text in a fixed-width font and preserves all whitespace exactly as written in the source code. The default behavior; the text in the heading
: Apply this in your CSS to make the text thick and prominent.