New /scripts/quotacheck Content-Type error

Alvaro Flano

Member
Apr 24, 2015
7
0
51
Santiago
cPanel Access Level
Root Administrator
I have a bunch of servers, some of them with cPanel version 11.48.3 (build 0) an others with 11.46.0 (build 17). In the ones with the older version, I can send email quota notifications using HTML code specifying the "Content-Type: text/html" header. The problem is in the new ones, the header is not read properly ant it is changed to plain/text and the HTML mails are not displaying correctly.

I looked into the /scripts/quotacheck file and in the new version of this script it looks like it gets the "To" and "Subject" headers and sends the rest of the message as email body, so the "Content-Type" header is not setting correctly.

Is there a way to correct this? Is this a bug?

If I couldn't explain myself properly just let me know and I can clarify if needed.

Thanks in advance,
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
Hello,

Could you open a support ticket using the link in my signature so we can review an example and determine if it's expected behavior? You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

Alvaro Flano

Member
Apr 24, 2015
7
0
51
Santiago
cPanel Access Level
Root Administrator
I already opened a ticket (#6437329) and they told me that this started happening in one of the updates. One solution, while waiting for the fix they told me that I could modify the Object.pm file using:

sed -i 's/text\/plain/text\/html/g' /usr/local/cpanel/Cpanel/Email/Object.pm
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
To update, internal case 187237 is open to address an issue where Content-Type might be hard set for "Email Usage Warning" notifications. There's currently no time frame available for a resolution, but you can monitor our change log for the case number at:

cPanel - Change Logs

Thank you.