Email Tickets Showing as Plain Text instead of HTML
Moderator: crythias
Email Tickets Showing as Plain Text instead of HTML
We just migrated from OTRS 3.3 to OTRS 5. We also needed to upgrade the host. Standard upgrades weren't working so we built a new box and moved the data and settings over. We use POP on several email accounts to get new tickets into the queues. One of the accounts is fed by an online form and the email is sent in html format. However, when it arrives in OTRS 5, it's in plain text. How do I display the email in html in OTRS 5? This worked fine in OTRS 3.
Re: Email Tickets Showing as Plain Text instead of HTML
please show the full plain data of the mail
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Email Tickets Showing as Plain Text instead of HTML
What's the best way to do that? Do you want a screenshot or is there another way?
Re: Email Tickets Showing as Plain Text instead of HTML
switch on "Plain Format" view for articles in Ticket Zoom
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Email Tickets Showing as Plain Text instead of HTML
The Plain Format view shows all the html as well as:
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
So that tells us that it's getting into OTRS and being stored in the database. I just need it to display in the Ticket View.
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
So that tells us that it's getting into OTRS and being stored in the database. I just need it to display in the Ticket View.
Re: Email Tickets Showing as Plain Text instead of HTML
I want to have a look at the the full emails plain text!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Email Tickets Showing as Plain Text instead of HTML
Thanks, I really appreciate the help, but I'm concerned with posting the full email header in a public forum. I'll send you a private message.
Re: Email Tickets Showing as Plain Text instead of HTML
Message sent, thanks again for looking at this.
Re: Email Tickets Showing as Plain Text instead of HTML
THis is an HTML only mail, so OTRS will try to strip the Text contents to be inserted in the database. Can you check if the sending software can send a multipart mime mail instead?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Email Tickets Showing as Plain Text instead of HTML
All the html is stored in the database, so I'm pretty sure nothing is getting stripped, OTRS just isn't displaying it. I can check to see if the form can send both, but I'm not sure it will matter. Like I said this worked fine in 3.3. Is there a SysConfig setting to check?
Re: Email Tickets Showing as Plain Text instead of HTML
HTML should not be saved in the article table. CHeck if PostmasterAutoHTML2Text is set to yes.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Email Tickets Showing as Plain Text instead of HTML
The sending form has a check box for either plain text or html.
Re: Email Tickets Showing as Plain Text instead of HTML
I've switched this setting back and forth serveral times before I posted here, but it doesn't not change anything. I'll leave set to Yes.jojo wrote:HTML should not be saved in the article table. CHeck if PostmasterAutoHTML2Text is set to yes.
Re: Email Tickets Showing as Plain Text instead of HTML
Ok, here's some more info. If I look in the 'article' table that body has no html, but is marked as text/plain. If I find the article in the 'article_plain' field then the html data is in the body.
Re: Email Tickets Showing as Plain Text instead of HTML
yes, because html is stripped of. To show HTML bodies OWTRS would need it as attachment (as multipart mime message)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Email Tickets Showing as Plain Text instead of HTML
Really? Why did it work fine in OTRS 3.3?jojo wrote:yes, because html is stripped of. To show HTML bodies OWTRS would need it as attachment (as multipart mime message)
Re: Email Tickets Showing as Plain Text instead of HTML
Attachments are also not working. Maybe the two are related?
Re: Email Tickets Showing as Plain Text instead of HTML
We found the problem. The attachments not working led us to the right place. Basically this was the result of the upgrade. There were some database and schema changes that didn't happen correctly even though the scripts were run. We added the 'disposition' column to the article_attachment table.