Error in emails

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
OCReactive
Posts: 45
Joined: Wed Apr 01, 2015 10:33 am

Error in emails

Post by OCReactive »

Script URL:
Mods for HESK version: 2018.1.0
HESK version: 2.8.1
Hosting company:
URL of phpinfo.php:
URL of session_test.php: OK
What terms did you try when SEARCHING for a solution: MIME

Write your message below:

Since updated HESK to 2.8.1 and MfH to 2018.1.0 I get the emails in plaintext starting with this code: https://pastecode.xyz/view/raw/4f67651c
Then, there is the plaintext email's-text, and then the html email's-text.

Could be a translation's error?
Óscar
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Error in emails

Post by mkoch227 »

Does this happen when HTML-enabled emails are turned on? If yes, does it still happen when HTML-enabled email are turned off?
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
OCReactive
Posts: 45
Joined: Wed Apr 01, 2015 10:33 am

Re: Error in emails

Post by OCReactive »

I've disabled HTML emails but I still get the MIME text.
Óscar
lcockell
Posts: 6
Joined: Tue May 01, 2018 9:01 pm

Re: Error in emails

Post by lcockell »

Mods for HESK version: 2018.1.0
HESK version: 2.8.1

I also have the same since updating. I get a similar header but wont allow me to post it in this reply. when html is on or off.


Also when Allow Html email is switched on I get the body of the message twice. Once in plain text and once html formatted. It does not autoselect the correct template.
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Error in emails

Post by mkoch227 »

OCReactive or lcockell: Can one of you PM me one of the emails that looks incorrect? Please make sure you send the "original message" (which contains all of the email headers). I just sent a "New ticket" email from the demo site and it came out correct, but I want to make sure that it's not gmail auto-correcting anything :lol:
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Error in emails

Post by mkoch227 »

Thanks OCReative for the example. Can one (or both of you) try making the following change and see if it resolves the issue?

In email_functions.inc.php, find (line 574):

Code: Select all

"Message-ID: " . hesk_generateMessageID() . "\n",
replace with:

Code: Select all

"Message-ID: " . hesk_generateMessageID(),
Then go ahead and save, upload, and test. I'm wondering if the stray new line at the end of the header is causing issues with some mail clients.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
lcockell
Posts: 6
Joined: Tue May 01, 2018 9:01 pm

Re: Error in emails

Post by lcockell »

That seems to have fixed the problem for me.
OCReactive
Posts: 45
Joined: Wed Apr 01, 2015 10:33 am

Re: Error in emails

Post by OCReactive »

It works for me as well!
Óscar
gosanchezamdc
Posts: 2
Joined: Mon Feb 05, 2018 5:28 pm

Re: Error in emails

Post by gosanchezamdc »

Great!
Worked for me!
Thanks a lot.
PeteHanley
Posts: 5
Joined: Wed Oct 04, 2017 2:39 pm

Re: Error in emails

Post by PeteHanley »

I had the same issue when I upgraded today. I just made the change to that line and it worked for me.
Post Reply