Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SugarCRM - Incoming emails stripped outside body tag

On our system, we received an email from one of our supplier, formatted this way :

<p>
    Email content
</p>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
    Email signature
</body>
</html>

SugarCRM seems to be stripping everything outside the body tag. That results in an email displaying only the signature within SugarCRM itself.

Do someone know a way-around to handle this case please ?

We are using SugarCRM CE v6.5.2.

Thanks

like image 330
B F Avatar asked Jul 28 '17 09:07

B F


1 Answers

your provided HTML is not valid(p tag at start and then starting DOCTYPE and html tag :) ) so any email server can truncate invalid html tags but i am sure sugar is not doing it because sugarcrm store complete data of an email in side emails_text table and you can check its column raw_source for complete received data. this column contain data which is received from outside server. That might help you to use that column.

Moreover you can check scheduler job function (function::pollMonitoredInboxes) which fetch emails. That contain code which is used for email fetching. track back code and you will find everything you want.

like image 88
Abdur Rehman Avatar answered Sep 27 '22 23:09

Abdur Rehman