{"id":25236,"date":"2026-01-20T13:07:46","date_gmt":"2026-01-20T13:07:46","guid":{"rendered":"https:\/\/1-grid.com\/knowledge\/?p=25236"},"modified":"2026-01-20T13:19:53","modified_gmt":"2026-01-20T13:19:53","slug":"how-to-resolve-message-has-lines-too-long-for-transport","status":"publish","type":"ht_kb","link":"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/","title":{"rendered":"How to Resolve a &#8220;Message Has Lines Too Long for Transport&#8221; Error\u00a0"},"content":{"rendered":"\n<p>Seeing a\u00a0\u201cMessage has lines too long for transport\u201d\u00a0error can be confusing and frustrating, especially when you want your email to be delivered successfully. This error does\u00a0<strong>not<\/strong>\u00a0mean your account is broken; it simply means your message\u00a0didn\u2019t\u00a0meet technical formatting rules that most email servers use to keep email reliable and secure.\u00a0<\/p>\n\n\n\n<p>It simply means your email\u00a0contained\u00a0one or more lines that were\u00a0<strong>too long<\/strong>\u00a0for the mail server to safely process.\u00a0<\/p>\n\n\n\n<p>This guide explains why this error happens, provides clear, actionable fixes for common causes, advanced server-level adjustments, and best practices to prevent future errors.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"600\" src=\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2022\/04\/1-grid-Images-for-KB-Articles-1000-x-600-px-17.png\" alt=\"How to Resolve a &quot;Message has lines too long for transport&quot; Error \" class=\"wp-image-34132\"\/><\/figure>\n<\/div>\n\n\n<div class=\"wp-block-ht-block-toc is-style-rounded htoc htoc--position-wide toc-list-style-plain\" data-htoc-state=\"expanded\"><span class=\"htoc__title\"><span class=\"ht_toc_title\">Table of Contents<\/span><span class=\"htoc__toggle\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"16\" height=\"16\"><g fill=\"#444\"><path d=\"M15 7H1c-.6 0-1 .4-1 1s.4 1 1 1h14c.6 0 1-.4 1-1s-.4-1-1-1z\"><\/path><path d=\"M15 1H1c-.6 0-1 .4-1 1s.4 1 1 1h14c.6 0 1-.4 1-1s-.4-1-1-1zM15 13H1c-.6 0-1 .4-1 1s.4 1 1 1h14c.6 0 1-.4 1-1s-.4-1-1-1z\"><\/path><\/g><\/svg><\/span><\/span><div class=\"htoc__itemswrap\"><ul class=\"ht_toc_list\"><li class=\"\"><a href=\"#htoc-\">Understanding\u00a0Email Protocols<\/a><\/li><li class=\"\"><a href=\"#htoc-what-this-message-error-actually-means\">What This\u00a0Message\u00a0Error Actually Means\u00a0<\/a><ul class=\"ht_toc_child_list\"><li class=\"\"><a href=\"#htoc-1111111111111\">\u00a0Sample of Bounce Email<\/a><\/li><\/ul><\/li><li class=\"\"><a href=\"#htoc-1\">Most Common Causes for Why This Happens<\/a><ul class=\"ht_toc_child_list\"><li class=\"\"><a href=\"#htoc-11\">At a Glance\u00a0<\/a><\/li><li class=\"\"><a href=\"#htoc-1-very-long-unwrapped-lines-in-your-email\">1. Very Long, Unwrapped Lines in Your Email\u00a0<\/a><\/li><li class=\"\"><a href=\"#htoc-2-html-formatting-issues\">2. HTML Formatting Issues\u00a0<\/a><\/li><li class=\"\"><a href=\"#htoc-3-attachments-encoded-incorrectly\">3. Attachments Encoded Incorrectly\u00a0<\/a><\/li><li class=\"\"><a href=\"#htoc-4-strict-mail-server-settings-exim-postfix\">4. Strict Mail Server Settings (Exim\/Postfix)\u00a0<\/a><\/li><li class=\"\"><a href=\"#htoc-5-email-sent-via-scripts-or-forms\">5. Email Sent Via Scripts or Forms\u00a0<\/a><\/li><\/ul><\/li><li class=\"\"><a href=\"#htoc-111\">How to Fix It\u00a0(Step-by-Step)<\/a><ul class=\"ht_toc_child_list\"><li class=\"\"><a href=\"#htoc-enable-word-wrapping-in-your-email-app-most-common-solution\">1. Enable Word Wrapping in Your Email App (Most Common Solution)\u00a0<\/a><ul class=\"ht_toc_child_list\"><li class=\"\"><a href=\"#htoc-outlook-windows-amp-macos\">Outlook (Windows &amp; macOS)\u00a0<\/a><\/li><li class=\"\"><a href=\"#htoc-mozilla-thunderbird\">Mozilla Thunderbird\u00a0<\/a><\/li><\/ul><\/li><li class=\"\"><a href=\"#htoc-switch-to-plain-text-quick-test\">2. Switch to Plain Text (Quick Test)\u00a0<\/a><\/li><li class=\"\"><a href=\"#htoc-check-email-formatting-in-html-messages\">3. Check Email Formatting in HTML Messages\u00a0<\/a><\/li><li class=\"\"><a href=\"#htoc-break-up-very-long-lines-manually\">4. Break Up Very Long Lines Manually\u00a0<\/a><\/li><li class=\"\"><a href=\"#htoc-check-attachments\">5. Check Attachments\u00a0<\/a><\/li><li class=\"\"><a href=\"#htoc-if-you-use-automated-emails-advanced\">6. If You Use Automated Emails (Advanced)\u00a0<\/a><ul class=\"ht_toc_child_list\"><li class=\"\"><a href=\"#htoc-for-php\">For PHP&nbsp;<\/a><\/li><li class=\"\"><a href=\"#htoc-for-python\">For Python&nbsp;<\/a><\/li><\/ul><\/li><\/ul><\/li><li class=\"\"><a href=\"#htoc-advanced-fix-server-administrators-only\">Advanced Fix (Server Administrators Only)&nbsp;<\/a><ul class=\"ht_toc_child_list\"><li class=\"\"><a href=\"#htoc-exim-whm-cpanel\">Exim (WHM\/cPanel)\u00a0<\/a><\/li><li class=\"\"><a href=\"#htoc-postfix-linux-example\">Postfix (Linux)\u00a0<\/a><\/li><\/ul><\/li><li class=\"\"><a href=\"#htoc-111111\">Advanced Troubleshooting (If Problem Persists)\u00a0<\/a><ul class=\"ht_toc_child_list\"><li class=\"\"><a href=\"#htoc-1-review-server-logs\">1. Review Server Logs&nbsp;<\/a><ul class=\"ht_toc_child_list\"><li class=\"\"><a href=\"#htoc-postfix-linux\">Postfix (Linux):\u00a0<\/a><\/li><li class=\"\"><a href=\"#htoc-exchange-windows\">Exchange (Windows):\u00a0<\/a><\/li><\/ul><\/li><li class=\"\"><a href=\"#htoc-2-test-with-a-different-email-client\">2. Test with a Different Email Client&nbsp;<\/a><\/li><\/ul><\/li><li class=\"\"><a href=\"#htoc-how-to-tell-what-caused-it-at-a-glance\">Best Practices to Prevent This in Future\u00a0<\/a><\/li><li class=\"\"><a href=\"#htoc-our-scope-of-support\">Our&nbsp;Scope of Support&nbsp;<\/a><\/li><li class=\"\"><a href=\"#htoc-1111111\">FAQ<\/a><\/li><li class=\"\"><a href=\"#htoc-111111111111\">Additional\u00a0Resources\u00a0<\/a><\/li><\/ul><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"htoc-\"><strong>Understanding\u00a0Email Protocols<\/strong><\/h2>\n\n\n\n<p>Email protocols, such as<strong>\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Simple_Mail_Transfer_Protocol\">SMTP (Simple Mail Transfer Protocol)<\/a><\/strong>, impose a line length limit to ensure compatibility across different email systems.\u00a0Email standards typically limit line length to 998 characters, and many servers enforce a recommended maximum of 78 characters per line to ensure compatibility across systems.\u00a0<\/p>\n\n\n\n<p>When a line exceeds these limits, the mail server often rejects the message to prevent transport issues.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"htoc-what-this-message-error-actually-means\"><strong>What This\u00a0Message\u00a0Error Actually Means\u00a0<\/strong><\/h2>\n\n\n\n<p>When emails travel between servers, they follow shared rules (called \u201cstandards\u201d). One of those rules limits how long a single line of text can be.&nbsp;<\/p>\n\n\n\n<p>If an email\u00a0contains\u00a0lines that are too long,\u00a0often because of formatting, attachments, or automation,\u00a0the receiving server may reject it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-1111111111111\">\u00a0<strong>Sample of Bounce Email<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>Subject: Mail delivery failed: returning message to sender<\/strong>\u00a0\n\u00a0\n<strong>This message was created automatically by mail delivery software.<\/strong>\u00a0\n\u00a0\n<strong>A message that you sent could not be delivered to one or more of its<\/strong>\u00a0\n\u00a0\n<strong>recipients. This is a permanent error. The following address(es) failed:<\/strong>\u00a0\n\u00a0\n<strong>message has lines too long for transport<\/strong>\u00a0<\/code><\/pre>\n\n\n\n<p>This is a&nbsp;<strong>server safety rule<\/strong>, not a personal failure or a 1-grid issue.&nbsp;<br><strong><\/strong>&nbsp;<br><strong>This means<\/strong>&nbsp;your message&nbsp;wasn\u2019t&nbsp;\u201cwrong\u201d;&nbsp;it just needs to be formatted in a way all email systems can accept.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"htoc-1\"><strong>Most Common Causes for Why This Happens<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-11\"><strong>At a Glance\u00a0<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Symptom<\/strong>&nbsp;<\/td><td><strong>Likely Cause<\/strong>&nbsp;<\/td><td><strong>Fast Fix<\/strong>&nbsp;<\/td><\/tr><tr><td>Error happens with long emails&nbsp;<\/td><td>Lines too long&nbsp;<\/td><td>Enable word wrap&nbsp;<\/td><\/tr><tr><td>Error happens with HTML emails&nbsp;<\/td><td>Formatting issue&nbsp;<\/td><td>Switch to plain text&nbsp;<\/td><\/tr><tr><td>Error happens with attachments&nbsp;<\/td><td>Encoding issue&nbsp;<\/td><td>Remove attachment &amp; retry&nbsp;<\/td><\/tr><tr><td>Error happens from forms\/scripts&nbsp;<\/td><td>No word&nbsp;wrap&nbsp;in code&nbsp;<\/td><td>Add&nbsp;wordwrap()&nbsp;<\/td><\/tr><tr><td>Error happens server-wide&nbsp;<\/td><td>Exim limits too strict&nbsp;<\/td><td>Adjust SMTP settings&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-1-very-long-unwrapped-lines-in-your-email\"><strong>1. Very Long, Unwrapped Lines in Your Email<\/strong>\u00a0<\/h3>\n\n\n\n<p>Some email apps, copied text, or automated messages&nbsp;don\u2019t&nbsp;automatically break long lines.&nbsp;<\/p>\n\n\n\n<p><strong>TIP:&nbsp;<\/strong>Turning on word wrapping prevents rejections before you even hit send.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-2-html-formatting-issues\"><strong>2. HTML Formatting Issues<\/strong>\u00a0<\/h3>\n\n\n\n<p>Poorly structured or \u201c<a href=\"https:\/\/developers.google.com\/speed\/docs\/insights\/MinifyResources\"><strong>minified<\/strong><\/a>\u201d<strong> <a href=\"https:\/\/en.wikipedia.org\/wiki\/HTML\">HTML<\/a><\/strong> can create extremely long hidden lines.\u00a0<\/p>\n\n\n\n<p><strong>TIP:&nbsp;<\/strong>Proper formatting makes your email more compatible across all email systems.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-3-attachments-encoded-incorrectly\"><strong>3. Attachments Encoded Incorrectly<\/strong>\u00a0<\/h3>\n\n\n\n<p>Large attachments can sometimes be<strong> <a href=\"https:\/\/www.base64encode.org\/enc\/attachment%27s\/\">encoded<\/a><\/strong> (like using Base64) in such a way that creates excessively long lines.\u00a0<\/p>\n\n\n\n<p><strong>TIP:\u00a0<\/strong>Correct<strong><a href=\"https:\/\/learn.microsoft.com\/en-us\/office\/client-developer\/outlook\/mapi\/attached-files-and-messages\"> encoding<\/a><\/strong> keeps your attachments deliverable and readable.\u00a0<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-4-strict-mail-server-settings-exim-postfix\"><strong>4. Strict Mail Server Settings (<\/strong><a href=\"https:\/\/www.exim.org\/docs.html\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Exim<\/strong><\/a><strong>\/<\/strong><a href=\"https:\/\/www.postfix.org\/documentation.html\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Postfix<\/strong><\/a><strong>)<\/strong>\u00a0<\/h3>\n\n\n\n<p>Some servers, especially newer<strong> <a href=\"https:\/\/www.exim.org\/\">Exim<\/a> <\/strong>versions, enforce stricter limits than before.\u00a0<\/p>\n\n\n\n<p><strong>TIP:&nbsp;<\/strong>If you manage your server, small adjustments can prevent unnecessary bounces.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-5-email-sent-via-scripts-or-forms\"><strong>5. Email Sent Via Scripts or Forms<\/strong>\u00a0<\/h3>\n\n\n\n<p>Website forms, newsletters, or automated systems may not wrap text properly.&nbsp;<\/p>\n\n\n\n<p><strong>TIP:&nbsp;<\/strong>One small code tweak can fix this permanently.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"htoc-111\"><strong>How to Fix It\u00a0(Step-by-Step)<\/strong><\/h2>\n\n\n\n<p>There are&nbsp;several&nbsp;different options that&nbsp;fix&nbsp;the &#8220;maximum line length for SMTP transports&#8221; error and make sure your emails&nbsp;go through&nbsp;smoothly.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-enable-word-wrapping-in-your-email-app-most-common-solution\"><strong>1. Enable Word Wrapping in Your Email App (Most Common Solution)<\/strong>\u00a0<\/h3>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"htoc-outlook-windows-amp-macos\"><strong>Outlook (Windows &amp; macOS)<\/strong>\u00a0<\/h6>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li id=\"htoc-open-outlook\">Open\u00a0<strong>Outlook<\/strong>\u00a0<\/li>\n\n\n\n<li id=\"htoc-go-to-file-options-mail\">Go to\u00a0<strong>File \u2192 Options \u2192 Mail<\/strong>\u00a0<\/li>\n\n\n\n<li id=\"htoc-scroll-down-to-message-format-and-find-automatically-wrap-text\">Scroll down to\u00a0<strong>Message format<\/strong>\u00a0and find\u00a0<strong>\u201cAutomatically wrap text\u201d<\/strong>\u00a0<\/li>\n\n\n\n<li id=\"htoc-set-it-between-65-78-characters\">Set it between\u00a0<strong>65\u201378 characters<\/strong>\u00a0<\/li>\n\n\n\n<li id=\"htoc-click-ok\">Click\u00a0<strong>OK<\/strong>\u00a0<\/li>\n<\/ol>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\"><\/ol>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\"><\/ol>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\"><\/ol>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\"><\/ol>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"htoc-mozilla-thunderbird\"><strong>Mozilla Thunderbird<\/strong>\u00a0<\/h6>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li id=\"htoc-open-thunderbird\">Open\u00a0<strong>Thunderbird<\/strong>\u00a0<\/li>\n\n\n\n<li id=\"htoc-go-to-preferences-general\">Go\u00a0to\u00a0<strong>Preferences > General<\/strong>\u00a0<\/li>\n\n\n\n<li id=\"htoc-under-composition-enable-wrap-plain-text-messages-at-78-characters\">Under\u00a0<strong>Composition<\/strong>, enable\u00a0<strong>Wrap plain text messages at 78 characters<\/strong>\u00a0<\/li>\n<\/ol>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\"><\/ol>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\"><\/ol>\n\n\n\n<p><strong>Why this matters:<\/strong>&nbsp;<br>This automatically keeps your messages within safe&nbsp;limits,&nbsp;so servers accept them.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-switch-to-plain-text-quick-test\"><strong>2. Switch to Plain Text (Quick Test)<\/strong>\u00a0<\/h3>\n\n\n\n<p>If the error keeps happening:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li id=\"htoc-compose-a-new-email\">Compose a new email\u00a0<\/li>\n\n\n\n<li id=\"htoc-change-format-to-plain-text-instead-of-html\">Change format to\u00a0<strong><a href=\"https:\/\/en.wikipedia.org\/wiki\/Plain_text\">Plain Text<\/a><\/strong>\u00a0instead of HTML\u00a0<\/li>\n\n\n\n<li id=\"htoc-try-sending-again\">Try sending again\u00a0<\/li>\n<\/ul>\n\n\n\n<p><strong>TIP:&nbsp;<\/strong>Plain text removes hidden formatting that can trigger this error.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-check-email-formatting-in-html-messages\"><strong>3. Check Email Formatting in HTML Messages<\/strong>\u00a0<\/h3>\n\n\n\n<p>If&nbsp;you\u2019re&nbsp;sending HTML emails, ensure proper line wrapping:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li id=\"htoc-use-lt-br-or-lt-p-tags-instead-of-manually-creating-long-lines\">Use\u00a0&lt;br>\u00a0or\u00a0&lt;p>\u00a0tags instead of manually creating long lines.\u00a0<\/li>\n\n\n\n<li id=\"htoc-avoid-minifying-html-to-extreme-lengths\">Avoid minifying HTML to extreme lengths.\u00a0<\/li>\n\n\n\n<li id=\"htoc-ensure-html-content-is-formatted-using-a-mail-editor-that-properly-breaks-lines\">Ensure HTML content is formatted using a mail editor that properly breaks lines.\u00a0<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-break-up-very-long-lines-manually\"><strong>4. Break Up Very Long Lines Manually<\/strong>\u00a0<\/h3>\n\n\n\n<p>If&nbsp;you\u2019ve&nbsp;pasted large blocks of text:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li id=\"htoc-press-enter-every-few-sentences\">Press\u00a0<strong>Enter<\/strong>\u00a0every few sentences\u00a0<\/li>\n\n\n\n<li id=\"htoc-avoid-extremely-long-paragraphs\">Avoid extremely long paragraphs\u00a0<\/li>\n<\/ul>\n\n\n\n<p><strong>TIP:&nbsp;<\/strong>Simple formatting often resolves the issue instantly.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-check-attachments\"><strong>5. Check Attachments<\/strong>\u00a0<\/h3>\n\n\n\n<p>If your message includes attachments:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li id=\"htoc-try-sending-without-the-attachment\">Try sending without the attachment\u00a0<\/li>\n\n\n\n<li id=\"htoc-or-use-a-file-sharing-link-instead-google-drive-onedrive-dropbox\">Or use a file-sharing link instead (<a href=\"https:\/\/drive.google.com\/drive\/quota\"><strong>Google Drive<\/strong><\/a>,<strong> <a href=\"https:\/\/www.microsoft.com\/en-za\/microsoft-365\/onedrive\/online-cloud-storage\">OneDrive<\/a><\/strong>, <a href=\"https:\/\/www.dropbox.com\/\"><strong>Dropbox<\/strong><\/a>)\u00a0<\/li>\n\n\n\n<li id=\"htoc-1111\">Use <strong><a href=\"https:\/\/www.base64decode.org\/\">MIME Base64 encoding<\/a><\/strong>, ensuring line breaks occur every 76 characters.<\/li>\n\n\n\n<li id=\"htoc-11111\">If your email system allows, use <strong><a href=\"https:\/\/en.wikipedia.org\/wiki\/Quoted-printable\">Quoted-Printable encoding<\/a><\/strong> for better readability.<\/li>\n<\/ul>\n\n\n\n<p><strong>TIP:&nbsp;<\/strong>This helps confirm whether the attachment is the trigger.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-if-you-use-automated-emails-advanced\"><strong>6. If You Use Automated Emails (Advanced)<\/strong>\u00a0<\/h3>\n\n\n\n<p>If you are sending emails via <strong><a href=\"https:\/\/en.wikipedia.org\/wiki\/Scripting_language\">scripts<\/a> <\/strong>(<a href=\"https:\/\/www.php.net\/\"><strong>PHP<\/strong><\/a>, <a href=\"https:\/\/www.python.org\/\"><strong>Python<\/strong><\/a>, etc.), ensure correct line wrapping.\u00a0<\/p>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"htoc-for-php\"><strong>For PHP<\/strong>&nbsp;<\/h6>\n\n\n\n<p>Main:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$message =&nbsp;wordwrap($message, 78, \"\\r\\n\");&nbsp;<\/code><\/pre>\n\n\n\n<p>Other:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$headers = \"Content-Type: text\/plain; charset=UTF-8\" .&nbsp;\"\\r\\n\";&nbsp;<br>mail($to, $subject, $message, $headers);&nbsp;<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"htoc-for-python\"><strong>For Python<\/strong>&nbsp;<\/h6>\n\n\n\n<p>Main&nbsp;to review:&nbsp;&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>message.as_string().replace(\"\\n\", \"\\r\\n\")&nbsp;<\/code><\/pre>\n\n\n\n<p>Others to review:&nbsp;&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import smtplib&nbsp;<br>from&nbsp;email.mime.text&nbsp;import MIMEText&nbsp;<br>&nbsp;<br>message =&nbsp;MIMEText(\"Your message content here\", \"plain\", \"utf-8\")&nbsp;<br>message&#91;\"Subject\"] = \"Your Subject\"&nbsp;<\/code><\/pre>\n\n\n\n<p><strong>TIP:&nbsp;<\/strong>This prevents errors for all future automated emails.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"htoc-advanced-fix-server-administrators-only\"><strong>Advanced Fix (Server Administrators Only)<\/strong>&nbsp;<\/h2>\n\n\n\n<p>If you manage your mail server (Exim\/WHM\/cPanel\/Postfix (Linux)), you may need to adjust line limits.\u00a0This may also help reduce false rejections while still keeping your server compliant.\u00a0<\/p>\n\n\n\n<p>Avoid setting this too high, as it can reduce compatibility with other mail systems and check if the changes worked by keeping an eye on your mail server logs. Make sure that the adjustments have successfully fixed the &#8220;Message Has Lines Too Long&nbsp;For&nbsp;Transport&#8221; issue.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-exim-whm-cpanel\"><strong>Exim (WHM\/cPanel)<\/strong>\u00a0<\/h3>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li id=\"htoc-log-into-whm-web-host-manager\">Log in to\u00a0<strong>WHM\u00a0(Web Host Manager)<\/strong>\u00a0<\/li>\n\n\n\n<li id=\"htoc-search-for-exim-and-then-open-exim-configuration-manager\">Search for\u00a0<strong>Exim<\/strong>, and then open\u00a0<strong>Exim Configuration Manager<\/strong>\u00a0<\/li>\n\n\n\n<li id=\"htoc-increase-maximum-line-length-for-smtp-transports-e-g-to-40000\">Increase\u00a0<strong>Maximum Line Length for SMTP Transports<\/strong>\u00a0(e.g., to\u00a040000)\u00a0\n<ul class=\"wp-block-list\">\n<li id=\"htoc-the-default-value-is-usually-set-at-2048-consider-making-it-higher-like-40000-to-allow-for-longer-email-lines-find-the-field-for-this-value-and-type-in-the-number-you-want\">The default value is usually set at 2048. Consider making it higher, like 40000, to allow for longer email lines. Find the field for this value and type in the number you want.\u00a0<\/li>\n\n\n\n<li id=\"htoc-while-setting-the-max-line-length-for-smtp-transports-to-a-high-number-can-help-with-the-message-has-lines-too-long-for-transport-error-on-a-cpanel-server-it-s-not-the-best-solution-use-a-value-that-fits-the-longest-emails-you-send-without-exceeding-the-maximum-line-length\">While setting the \u201cMax Line Length for SMTP transports\u201d to a high number can help with the \u201cMessage Has Lines Too Long\u00a0For\u00a0Transport\u201d error on a cPanel server,\u00a0it&#8217;s\u00a0not the best solution. Use a value that fits the longest emails you send without exceeding the maximum line length.\u00a0<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li id=\"htoc-click-save-to-apply-the-changes\">Click\u00a0<strong>Save<\/strong>\u00a0to apply the changes\u00a0<\/li>\n<\/ol>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\"><\/ol>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\"><\/ol>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\"><\/ol>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\"><\/ol>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\"><\/ol>\n\n\n\n<p>Alternative&nbsp;steps:&nbsp;&nbsp;<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li id=\"htoc-locate-your-configuration-file-usually-etc-exim-exim-conf\">Locate your configuration file (usually\u00a0\/etc\/exim\/exim.conf).\u00a0<\/li>\n\n\n\n<li id=\"htoc-add-or-update\"><strong>Add<\/strong>\u00a0or\u00a0<strong>update<\/strong>:\u00a0<\/li>\n<\/ol>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\"><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>message_size_limit&nbsp;= 52428800&nbsp;<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li id=\"htoc-restart-exim\">Restart Exim:\u00a0<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo&nbsp;systemctl&nbsp;restart&nbsp;exim&nbsp;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-postfix-linux-example\"><strong>Postfix (Linux)<\/strong>\u00a0<\/h3>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li id=\"htoc-locate-your-configuration-file-usually-etc-exim-exim-conf1\">Open the configuration file: (usually\u00a0sudo\u00a0nano \/etc\/postfix\/main.cf).\u00a0<\/li>\n\n\n\n<li id=\"htoc-add-or-update1\"><strong>Add<\/strong>\u00a0or\u00a0<strong>update<\/strong> to allow longer transport lines (example):<\/li>\n<\/ol>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\"><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>message_size_limit&nbsp;= 52428800&nbsp;<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li id=\"htoc-restart-exim1\">Restart Postfix:\u00a0<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart postfix <\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p><strong>IMPORTANT:&nbsp;<\/strong>These changes require server admin access and should be done with caution.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"htoc-111111\"><strong>Advanced Troubleshooting (If Problem Persists)\u00a0<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-1-review-server-logs\"><strong>1. Review Server Logs<\/strong>&nbsp;<\/h3>\n\n\n\n<p>Look for entries related to transport limits:&nbsp;<\/p>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"htoc-postfix-linux\"><strong>Postfix (Linux):<\/strong>\u00a0<\/h6>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo\u00a0cat \/var\/log\/mail.log | grep transport\u00a0<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"htoc-exchange-windows\"><strong>Exchange (Windows):<\/strong>\u00a0<\/h6>\n\n\n\n<p>Logs are typically found at:\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\Program Files\\Microsoft\\Exchange Server\\V15\\Logging\\TransportRole\u00a0<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"htoc-2-test-with-a-different-email-client\"><strong>2. Test with a Different Email Client<\/strong>&nbsp;<\/h3>\n\n\n\n<p>If the issue only occurs with one client, it might be a formatting issue specific to that application.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"htoc-how-to-tell-what-caused-it-at-a-glance\"><strong><strong>Best Practices to Prevent This in Future\u00a0<\/strong><\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li id=\"htoc-keep-emails-reasonably-formatted\">Keep emails reasonably formatted\u00a0<\/li>\n\n\n\n<li id=\"htoc-avoid-extremely-long-single-paragraphs\">Avoid extremely long single paragraphs\u00a0<\/li>\n\n\n\n<li id=\"htoc-use-proper-html-structure-if-sending-rich-emails\">Use proper HTML structure if sending rich emails\u00a0<\/li>\n\n\n\n<li id=\"htoc-ensure-any-automation-includes-line-wrapping\">Ensure any automation includes line wrapping\u00a0<\/li>\n\n\n\n<li id=\"htoc-if-you-manage-a-server-set-sensible-smtp-limits\">If you manage a server, set sensible SMTP limits\u00a0<\/li>\n<\/ul>\n\n\n\n<p><strong>TIP:&nbsp;<\/strong>Prevention saves you time, avoids frustration, and improves deliverability.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"htoc-our-scope-of-support\"><strong>Our&nbsp;<\/strong><a href=\"https:\/\/1grid.co.za\/knowledge\/1-grid-scope-of-support\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Scope of Support<\/strong><\/a><strong><\/strong>&nbsp;<\/h2>\n\n\n\n<p>If\u00a0you\u2019re\u00a0stuck and need any\u00a0additional\u00a0guidance or support,\u00a0here\u2019s\u00a0an outline of what we can do and what is not within\u00a0our<strong>\u00a0<\/strong><a href=\"https:\/\/1grid.co.za\/knowledge\/1-grid-scope-of-support\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Scope of Support<\/strong><\/a>.\u00a0<\/p>\n\n\n\n<p><strong><\/strong><a href=\"https:\/\/1grid.co.za\/knowledge\/1-grid-scope-of-support\/#htoc-standard-support-included\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Included Support<\/strong><\/a><strong><\/strong>&nbsp;<\/p>\n\n\n\n<p>We\u00a0<strong>can<\/strong>:\u00a0<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li id=\"htoc-guide-you-through-word-wrapping-and-email-formatting\">Guide you through word wrapping and email formatting\u00a0<\/li>\n\n\n\n<li id=\"htoc-interpret-error-details\">Interpret error details\u00a0<\/li>\n\n\n\n<li id=\"htoc-confirm-whether-emails-are-reaching-1-grid-servers\">Confirm whether emails are reaching 1-grid servers\u00a0<\/li>\n\n\n\n<li id=\"htoc-advise-on-next-troubleshooting-steps\">Advise on next troubleshooting steps\u00a0<\/li>\n<\/ul>\n\n\n\n<p><strong><\/strong><a href=\"https:\/\/1grid.co.za\/knowledge\/1-grid-scope-of-support\/#htoc-11111\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Advanced Support (Paid Services)<\/strong><\/a><strong><\/strong>&nbsp;<\/p>\n\n\n\n<p>While some tasks fall outside Standard&nbsp;Support,&nbsp;we can still help through our&nbsp;Paid Services&nbsp;offering. These tasks require&nbsp;specialised&nbsp;work and are quoted before we begin.&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p><strong><\/strong><a href=\"https:\/\/1grid.co.za\/knowledge\/1-grid-scope-of-support\/#htoc-11111111\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Outside Our Scope<\/strong><\/a><strong><\/strong>&nbsp;<\/p>\n\n\n\n<p>We&nbsp;<strong>do not directly control:<\/strong>&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li id=\"htoc-your-personal-device-settings\">Your personal device settings\u00a0<\/li>\n\n\n\n<li id=\"htoc-third-party-email-apps\">Third-party email apps\u00a0<\/li>\n\n\n\n<li id=\"htoc-external-email-provider-policies\">External email provider policies\u00a0<\/li>\n\n\n\n<li id=\"htoc-your-home-or-corporate-firewall\">Your home or corporate\u00a0firewall\u00a0<\/li>\n<\/ul>\n\n\n\n<p>If the issue is local,&nbsp;we\u2019ll&nbsp;guide you clearly toward the right next step.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"htoc-1111111\">FAQ<\/h2>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary><strong>Q: Will\u00a0shortening\u00a0my email always fix this?<\/strong><\/summary>\n<p id=\"htoc-11111111\">Usually yes, especially if the issue is long,\u00a0unwrapped\u00a0lines.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary><strong>Q: Is this a security problem?<\/strong><\/summary>\n<p id=\"htoc-111111111\">No, as\u00a0it\u2019s\u00a0a formatting\/transport rule, not a breach.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary><strong>Q: Can this happen in any email app?<\/strong><\/summary>\n<p id=\"htoc-1111111111\">Yes, Outlook, Apple Mail, Gmail, Thunderbird, and automated systems can all trigger it.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary><strong>Q: Should I use Plain Text or HTML?<\/strong><\/summary>\n<p id=\"htoc-11111111111\">Plain Text is safest; HTML is fine if properly formatted.<\/p>\n<\/details>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"htoc-111111111111\"><strong>Additional\u00a0Resources\u00a0<\/strong><\/h2>\n\n\n\n<p><a href=\"https:\/\/1grid.co.za\/knowledge\/email-address-rejected-by-server-error-in-your-iphone-ipad-mac-mail\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Fix an \u201cEmail Address Rejected by Server\u201d Error<\/strong><\/a>\u00a0<br><a href=\"https:\/\/1grid.co.za\/knowledge\/how-to-fix-cannot-verify-server-identity-error\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Fix a \u201cCannot Verify Server Identity\u201d Error<\/strong><\/a>\u00a0<br><a href=\"https:\/\/1grid.co.za\/knowledge\/?s=send+email&amp;ht-kb-search=1&amp;lang=\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Troubleshooting Email Sending Issues<\/strong><\/a>\u00a0<br><a href=\"https:\/\/1grid.co.za\/knowledge\/troubleshooting-steps-for-email\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Basic Troubleshooting Steps for Email<\/strong><\/a>\u00a0<br><a href=\"https:\/\/1grid.co.za\/knowledge\/email-error-messages-what-do-they-mean\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Email Error Messages: What Do They Mean and How to Fix Them<\/strong><\/a>\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"htoc-need-additional-support\"><strong>Need Additional Support?\u00a0<\/strong><\/h2>\n\n\n\n<p><strong>We&#8217;re&nbsp;Here to&nbsp;<\/strong><a href=\"https:\/\/1grid.co.za\/knowledge\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Help<\/strong><\/a><strong>:<\/strong>&nbsp;<\/p>\n\n\n\n<p>Resolving the challenge of&nbsp;having&nbsp;lines too long in your messages&nbsp;doesn\u2019t&nbsp;have to feel technical&nbsp;with&nbsp;this&nbsp;easy-to-reference guide. Stuck?&nbsp;Check out our&nbsp;<a href=\"https:\/\/1grid.co.za\/knowledge\/1-grid-scope-of-support\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Scope of&nbsp;Support<\/strong><\/a>, and&nbsp;then contact our Support Team for&nbsp;further&nbsp;clarity and&nbsp;guidance&nbsp;(<a href=\"https:\/\/1grid.co.za\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>https:\/\/1grid.co.za\/contact-us\/<\/strong><\/a>).&nbsp;We&#8217;re&nbsp;ready&nbsp;to see how we can help!&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Seeing a\u00a0\u201cMessage has lines too long for transport\u201d\u00a0error can be confusing and frustrating, especially when you want your email to be delivered successfully. This error does\u00a0not\u00a0mean your account is broken; it simply means your message\u00a0didn\u2019t\u00a0meet technical formatting rules that most email servers use to keep email reliable and secure.\u00a0 It&#8230;<\/p>\n","protected":false},"author":21,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[1173,1194],"ht-kb-tag":[1393,336,1482,420,458,480,570,587,1573,621,622,625,709,849,928,1030,1041,1046],"class_list":["post-25236","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-email","ht_kb_category-email-troubleshooting","ht_kb_tag-configuration","ht_kb_tag-email","ht_kb_tag-email-errors","ht_kb_tag-for","ht_kb_tag-has","ht_kb_tag-how-to","ht_kb_tag-lines","ht_kb_tag-long","ht_kb_tag-mail-server","ht_kb_tag-message","ht_kb_tag-messages","ht_kb_tag-microsoft","ht_kb_tag-outlook","ht_kb_tag-resolve","ht_kb_tag-smtp","ht_kb_tag-too","ht_kb_tag-transport","ht_kb_tag-troubleshooting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fix &quot;Message Has Lines Too Long&quot; Error - 1-grid Knowledge Base<\/title>\n<meta name=\"description\" content=\"Fix the \u201cMessage has lines too long for transport\u201d email error with clear, step-by-step solutions to restore secure, reliable email delivery.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fix &quot;Message Has Lines Too Long&quot; Error - 1-grid Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"Fix the \u201cMessage has lines too long for transport\u201d email error with clear, step-by-step solutions to restore secure, reliable email delivery.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/\" \/>\n<meta property=\"og:site_name\" content=\"1-grid Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/1grid.co.za\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-20T13:19:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2022\/04\/1-grid-Images-for-KB-Articles-1000-x-600-px-17.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@1grid_hosting\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/\",\"name\":\"Fix \\\"Message Has Lines Too Long\\\" Error - 1-grid Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\"},\"datePublished\":\"2026-01-20T13:07:46+00:00\",\"dateModified\":\"2026-01-20T13:19:53+00:00\",\"description\":\"Fix the \u201cMessage has lines too long for transport\u201d email error with clear, step-by-step solutions to restore secure, reliable email delivery.\",\"breadcrumb\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/1grid.co.za\/knowledge\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Resolve a &#8220;Message Has Lines Too Long for Transport&#8221; Error\u00a0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"contentUrl\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"width\":100,\"height\":100,\"caption\":\"1-Grid Domain Hosting Knowledge Base\"},\"image\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/1grid.co.za\/\",\"https:\/\/twitter.com\/1grid_hosting\",\"https:\/\/www.instagram.com\/1grid_hosting\/\",\"https:\/\/za.linkedin.com\/company\/1-grid\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fix \"Message Has Lines Too Long\" Error - 1-grid Knowledge Base","description":"Fix the \u201cMessage has lines too long for transport\u201d email error with clear, step-by-step solutions to restore secure, reliable email delivery.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/","og_locale":"en_US","og_type":"article","og_title":"Fix \"Message Has Lines Too Long\" Error - 1-grid Knowledge Base","og_description":"Fix the \u201cMessage has lines too long for transport\u201d email error with clear, step-by-step solutions to restore secure, reliable email delivery.","og_url":"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/","og_site_name":"1-grid Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/1grid.co.za\/","article_modified_time":"2026-01-20T13:19:53+00:00","og_image":[{"url":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2022\/04\/1-grid-Images-for-KB-Articles-1000-x-600-px-17.png"}],"twitter_card":"summary_large_image","twitter_site":"@1grid_hosting","twitter_misc":{"Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/","url":"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/","name":"Fix \"Message Has Lines Too Long\" Error - 1-grid Knowledge Base","isPartOf":{"@id":"https:\/\/1grid.co.za\/knowledge\/#website"},"datePublished":"2026-01-20T13:07:46+00:00","dateModified":"2026-01-20T13:19:53+00:00","description":"Fix the \u201cMessage has lines too long for transport\u201d email error with clear, step-by-step solutions to restore secure, reliable email delivery.","breadcrumb":{"@id":"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/1grid.co.za\/knowledge\/how-to-resolve-message-has-lines-too-long-for-transport\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/1grid.co.za\/knowledge\/"},{"@type":"ListItem","position":2,"name":"How to Resolve a &#8220;Message Has Lines Too Long for Transport&#8221; Error\u00a0"}]},{"@type":"WebSite","@id":"https:\/\/1grid.co.za\/knowledge\/#website","url":"https:\/\/1grid.co.za\/knowledge\/","name":"1-Grid Domain Hosting Knowledge Base","description":"","publisher":{"@id":"https:\/\/1grid.co.za\/knowledge\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/1grid.co.za\/knowledge\/#organization","name":"1-Grid Domain Hosting Knowledge Base","url":"https:\/\/1grid.co.za\/knowledge\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/","url":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","contentUrl":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","width":100,"height":100,"caption":"1-Grid Domain Hosting Knowledge Base"},"image":{"@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/1grid.co.za\/","https:\/\/twitter.com\/1grid_hosting","https:\/\/www.instagram.com\/1grid_hosting\/","https:\/\/za.linkedin.com\/company\/1-grid"]}]}},"_links":{"self":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/comments?post=25236"}],"version-history":[{"count":8,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25236\/revisions"}],"predecessor-version":[{"id":34136,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25236\/revisions\/34136"}],"wp:attachment":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/media?parent=25236"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-category?post=25236"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-tag?post=25236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}