The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New /scripts/quotacheck Content-Type error

Discussion in 'E-mail Discussions' 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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page