Hello,
I installed iPrice light on my J3 site but I get mail delivery errors.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
**email address**
SMTP error from remote mail server after end of data:
host outbound.mailspamprotection.com [108.163.220.50]:
550 Maximum line length exceeded (see RFC 5322 2.1.1).
I have no influence on the mail layout itself. It's just a test installation with one category and two items. 'item-1'and ítem'-2' without images and three words of description text. So very simple.
After a few hours debugging I found the problem and the solution.
<<<< SOLUTION >>>>
Accordeons to my ISP an documenten on the internet the lenght of the email is too long.
If you put line breaks (\n\r) into the problem is solved.
I made the next adjustment in
administrator/components/com_ipricecalc/helpers/orderhtml.php
Line 89-99
Original
$html .= '<div style="font-family: Tahoma, Helvetica, sans-serif; width:100%;">';
$html .= '<div style="font-size:14px; line-height:22px; width:100%;">';
$html .= '<span style="font-size:20px; font-weight:bold;">'.JText::_('Order_num').' '.$order->orderno.'</span></br></br>';
$html .= JText::_('Order_date').' '.JHTML::_('date', $order->orderdate, JText::_('DATE_FORMAT_LC4') ).'</br>';
if ($order->firm)
$html .= JText::_('Order_company').' '.$order->firm.'</br>';
$html .= JText::_('Order_person').' '.$order->fio.'</br>';
$html .= JText::_('Order_email').' '.$order->email.'</br>';
$html .= JText::_('Order_phone').' '.$order->phone.'</br>';
$html .= '<p>'.JText::_('Order_comments').' '.$order->comments.'</p></br>';
$html .= '</div>';
Replaced with
$html .= '<div style="font-family: Tahoma, Helvetica, sans-serif; width:100%;">';
$html .= '<div style="font-size:14px; line-height:22px; width:100%;">';
$html .= '<span style="font-size:20px; font-weight:bold;">'.JText::_('Order_num').' '.$order->orderno.'</span><br /><br />'."\r\n";
$html .= JText::_('Order_date').' '.JHTML::_('date', $order->orderdate, JText::_('DATE_FORMAT_LC4') ).'<br />';
if ($order->firm)
$html .= JText::_('Order_company').' '.$order->firm.'<br/>'."\r\n";
$html .= JText::_('Order_person').' '.$order->fio.'<br />'."\r\n";
$html .= JText::_('Order_email').' '.$order->email.'<br />'."\r\n";
$html .= JText::_('Order_phone').' '.$order->phone.'<br />'."\r\n";
$html .= '<p>'.JText::_('Order_comments').' '.$order->comments.'</p><br />'."\r\n";
$html .= '</div>';