SOLVED Problem CPANEL-39824 : message has lines too long for transport - Since January 21, 2022

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
Thanks for reporting this - while we are aware of the issue, we don't have a workaround just yet. So far, it seems that most users experiencing the problem are using Outlook, as the same message is successfully sent through Webmail. If they have the option to do so, using Webmail instead of a client is a good, temporary workaround.

We'll update that article once we have more details on the issue.
 

tinoandrijic

Member
Mar 6, 2005
6
1
153
If they have the option to do so, using Webmail instead of a client is a good, temporary workaround.
Easy with Outlook, the problem is with some of my clients who have a financial application that sends emails directly and that software is old and the developers are unavailable and the sent emails are pre-formatted. Unable to use webmail.
 

daflame

Member
Oct 7, 2015
9
4
53
Beloeil Canada
cPanel Access Level
Root Administrator
Thanks for reporting this - while we are aware of the issue, we don't have a workaround just yet. So far, it seems that most users experiencing the problem are using Outlook, as the same message is successfully sent through Webmail. If they have the option to do so, using Webmail instead of a client is a good, temporary workaround.

We'll update that article once we have more details on the issue.
Emails with this issues are sent using the mail() PHP function through websites. Not with Outlook.
 

mickael

Well-Known Member
Aug 3, 2014
57
9
58
cPanel Access Level
Root Administrator
Yes it is my case, mail() of PHP, it is the only concern that I encounter.
I would not put any smtp system with login and password, because too long to create that, it is up to mail() of PHP which must work correctly.
 

mickael

Well-Known Member
Aug 3, 2014
57
9
58
cPanel Access Level
Root Administrator
I just did a quick test on a small php file:

PHP:
$sujet = "Confirmation inscription";
$emailserver = "[email protected]";
ini_set("sendmail_from",$emailserver);
$entete = "MIME-Version: 1.0\n";
$entete .= "Content-type: text/html; charset=utf-8\n";
$entete .= "From: name.com <$emailserver>\r\n";
$entete .= "Return-Path: $emailserver\r\n";
$entete .= "Reply-To: $emailserver\r\n";
$params = sprintf("-oi -f %s",$emailserver);
$template = file_get_contents('https://site.com/emails/theme1/[email protected]&confirm_id=fff&nick=fffff');
mail("[email protected]", $sujet, $template, $entete, $params);
The email is not sent, the reason is: message has lines too long for transport

Here is another test:

PHP:
<?php
$sujet = "Confirmation inscription";
$emailserver = "[email protected]";
ini_set("sendmail_from",$emailserver);
$entete = "MIME-Version: 1.0\n";
$entete .= "Content-type: text/html; charset=utf-8\n";
$entete .= "From: name.com <$emailserver>\r\n";
$entete .= "Return-Path: $emailserver\r\n";
$entete .= "Reply-To: $emailserver\r\n";
$params = sprintf("-oi -f %s",$emailserver);
//$template = file_get_contents('https://site.com/emails/theme1/[email protected]&confirm_id=fff&nick=fffff');
mail("[email protected]", $sujet, "testt", $entete, $params);

There the email is sent!

The only thing changed is the "testt" message here: mail("[email protected]", $sujet, "testt", $entete, $params);


Maybe there is a problem for the message part? is it limited? or it no longer accepts large html data nor templates
 
  • Like
Reactions: Steve Kemp

daflame

Member
Oct 7, 2015
9
4
53
Beloeil Canada
cPanel Access Level
Root Administrator
I just did a quick test on a small php file:

PHP:
$sujet = "Confirmation inscription";
$emailserver = "[email protected]";
ini_set("sendmail_from",$emailserver);
$entete = "MIME-Version: 1.0\n";
$entete .= "Content-type: text/html; charset=utf-8\n";
$entete .= "From: name.com <$emailserver>\r\n";
$entete .= "Return-Path: $emailserver\r\n";
$entete .= "Reply-To: $emailserver\r\n";
$params = sprintf("-oi -f %s",$emailserver);
$template = file_get_contents('https://site.com/emails/theme1/[email protected]&confirm_id=fff&nick=fffff');
mail("[email protected]", $sujet, $template, $entete, $params);
The email is not sent, the reason is: message has lines too long for transport

Here is another test:

PHP:
<?php
$sujet = "Confirmation inscription";
$emailserver = "[email protected]";
ini_set("sendmail_from",$emailserver);
$entete = "MIME-Version: 1.0\n";
$entete .= "Content-type: text/html; charset=utf-8\n";
$entete .= "From: name.com <$emailserver>\r\n";
$entete .= "Return-Path: $emailserver\r\n";
$entete .= "Reply-To: $emailserver\r\n";
$params = sprintf("-oi -f %s",$emailserver);
//$template = file_get_contents('https://site.com/emails/theme1/[email protected]&confirm_id=fff&nick=fffff');
mail("[email protected]", $sujet, "testt", $entete, $params);

There the email is sent!

The only thing changed is the "testt" message here: mail("[email protected]", $sujet, "testt", $entete, $params);


Maybe there is a problem for the message part? is it limited? or it no longer accepts large html data nor templates
I was able to solve the problem by adding line breaks in the message (not <br />).
The entire email message was on one line only and it contained HTML code so it was a very long line of text.
 

Secmas

Well-Known Member
Feb 18, 2005
388
21
168
Hope the fix is released soon.
A lot of my customers are experiencing the same issue as well.

Customers that have cams that send emails with pictures when an intrusion is triggered are suffering with this.