Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

New /scripts/quotacheck Content-Type error

Discussion in 'E-mail Discussion' started by Alvaro Flano, Apr 24, 2015.

  1. Alvaro Flano

    Alvaro Flano Registered

    Joined:
    Apr 24, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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,
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Alvaro Flano

    Alvaro Flano Registered

    Joined:
    Apr 24, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice