ampersand creates problems

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
oknihs88
Posts: 3
Joined: Wed Mar 13, 2013 12:46 pm

ampersand creates problems

Post by oknihs88 »

Script URL: INTERNAL
Version of script: 2.4.2
Hosting company: NA
URL of phpinfo.php: NA
URL of session_test.php: NA
What terms did you try when SEARCHING for a solution:

Write your message below:

Email fetching is working no problem. But when email contents include & in the body, HESK misinterprets the message. Any suggestion?

For example, original email is saying "old & new Employee ...." and imported message in HESK is showing "old font-family:"Arial","sans-serif""> " and the rest is trimmed off. It looks like the ampersand is creating the problem.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: ampersand creates problems

Post by Klemen »

Could you share a sample email (entire source with headers - you can hide email addresses) so I can check and troubleshoot it?
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
oknihs88
Posts: 3
Joined: Wed Mar 13, 2013 12:46 pm

Re: ampersand creates problems

Post by oknihs88 »

I sent to HESK to recreate the problem. Here is the message I sent.
--------------------------------------------------------------------------------
Hello support,

Can you read me? I need a help from you & you & you.

If “you” can help me, that will be ‘wonderful’.

This is a test.
--------------------------------------------------------------------------------

And this is the message I received after email fetch imported to HESK
--------------------------------------------------------------------------------
Hello support,

Can you read me? I need a help from you & you font-family:"Calibri","sans-serif";mso-bidi-font-family:"Times New Roman";mso-no-proof:yes">

If "you" can help me, that will be 'wonderful'.

This is a test.
--------------------------------------------------------------------------------

My company is getting to like HESK a lot. I appreciate your nice effort.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: ampersand creates problems

Post by Klemen »

Hmm, I can't seem to be able to duplicate the issue, it could be due to the way emails are coded.

Could you send a test email to pop3test (AT) hesk (DOT) com so I can run in through my test setup?
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
oknihs88
Posts: 3
Joined: Wed Mar 13, 2013 12:46 pm

Re: ampersand creates problems

Post by oknihs88 »

I was about sending you some test email. But I thought it could simply be a PHP set up issue. So I looked through PHP.INI and I noticed mbstring extension was on but all settings under [mbstring] were commented out. So I uncommented all. Bingo! It started working fine.

Thanks for your time to investigate this issue. You gave me the direction to check.
matt.wilson
Posts: 1
Joined: Tue Apr 09, 2013 12:43 pm

Re: ampersand creates problems

Post by matt.wilson »

Hi

This sounded promising but when I check my php.ini all references to mbstring are already commented out.

Anymore ideas?

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

Re: ampersand creates problems

Post by Klemen »

Are you on a Windows or Linux server?

If on Windows, is the line

Code: Select all

extension=php_mbstring.dll
also uncommented (in other words: does the line with this text start with ; ?
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
Post Reply