Error: 554 Transaction failed: Duplicate header 'MIME-Version'.

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
deanwalker
Posts: 6
Joined: Thu Sep 26, 2019 9:36 am

Error: 554 Transaction failed: Duplicate header 'MIME-Version'.

Post by deanwalker »

Script URL: https://helpdesk.surgeitsupport.com
Mods for HESK version: 2019.1.0
HESK version: 2.8.4
Hosting company: Walker Hosting
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: 554 error

Write your message below:

Hi there, We use Mods for Hesk on 2 installations (using the same hosting environment) The older version (one before the latest) works fine however the new installtion is having an issue

When trying to send a reply to the customer we get an error couldnt send email - when we turn on debug mode it gives us this error

Code: Select all

Error: 554 Transaction failed: Duplicate header 'MIME-Version'.
It seems that the MIME-Version is displayed twice.

We removed the installation and started fresh

First we installed Hesk - enabled smtp and sent an email. Works perfect

Then we installed mods for hesk and then redid our test and got the same error again

Any ideas how to get around the MIME Version being outputted twice?

Thanks
Klemen
Site Admin
Posts: 10113
Joined: Fri Feb 11, 2005 4:04 pm

Re: Error: 554 Transaction failed: Duplicate header 'MIME-Version'.

Post by Klemen »

This will probably fix it?
viewtopic.php?f=19&t=6434
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
deanwalker
Posts: 6
Joined: Thu Sep 26, 2019 9:36 am

Re: Error: 554 Transaction failed: Duplicate header 'MIME-Version'.

Post by deanwalker »

I have tried that already and didn't make a difference

Thanks
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Error: 554 Transaction failed: Duplicate header 'MIME-Version'.

Post by mkoch227 »

deanwalker wrote: Thu Sep 26, 2019 9:42 amWhen trying to send a reply to the customer we get an error couldnt send email
Are you referring to the email when sending a new reply, or are you clicking the "Resend Email Notification" button?
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
deanwalker
Posts: 6
Joined: Thu Sep 26, 2019 9:36 am

Re: Error: 554 Transaction failed: Duplicate header 'MIME-Version'.

Post by deanwalker »

Thanks for the quick responses

This is refering to all emails

When i create a ticket i dont receive any emails, I only spotted this when replying to a ticket. I have not tried the resend email notification

here is a quick screen cast of the issue

https://recordit.co/oSiVNehbIM

Thanks
deanwalker
Posts: 6
Joined: Thu Sep 26, 2019 9:36 am

Re: Error: 554 Transaction failed: Duplicate header 'MIME-Version'.

Post by deanwalker »

Also just to point out,

This is a clean installation

Only settings changed was SMTP for Amazon SES

I tested on hesk before installing the mods and it worked fine

issue since installing the mods

Thank you for all your help
deanwalker
Posts: 6
Joined: Thu Sep 26, 2019 9:36 am

Re: Error: 554 Transaction failed: Duplicate header 'MIME-Version'.

Post by deanwalker »

Hey any update?

Thanks
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Error: 554 Transaction failed: Duplicate header 'MIME-Version'.

Post by mkoch227 »

Heh, I see the issue.

In inc/email_functions.inc.php (you may want to make a backup of this file first in case things go awry), find:

Code: Select all

// Send the e-mail using SMTP
$headersArray = array(
    "From: $hesk_settings[from_header]",
    "To: $to",
    "Reply-To: $hesk_settings[from_header]",
    "Return-Path: $hesk_settings[webmaster_mail]",
    "Subject: " . $subject,
    "Date: " . date(DATE_RFC2822),
    "Message-ID: " . hesk_generateMessageID(),
    "MIME-Version: 1.0",
);
array_push($headersArray, "MIME-Version: 1.0");
Delete this line:

Code: Select all

array_push($headersArray, "MIME-Version: 1.0");
Save, upload, and test
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Post Reply