<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>error sending message</title> 
  <pubDate>Fri, 10 Apr 2026 03:14:12 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7110</link> 
  <atom:link rel="self" type="application/rss+xml" title="error sending message" href="https://bugs.horde.org/ticket/7110/rss" /> 
  <description>error sending message</description> 
 
   
   
  <item> 
   <title>I have to servers : exact same CVS and config files (same SM</title> 
   <description>I have to servers : exact same CVS and config files (same SMTP server) and we don&#039;t use pgp.

The only thing different is php :

server A : php-5.2.6.2.fc7

server B : php-5.2.5-5



I have no problem sending messages from server B.

Using server A, from IMP, compose a new message and add at least  two recipient. I get the following error when sending the message :

There was an error sending your message: Failed to add recipient: @mbpgroup.com [SMTP: Invalid response code received from server (code: 553, response: 5.1.3 &lt;@mbpgroup.com&gt;... User address required)]



If I have only one recipient, the email is sent without any problem.



I found a dirty fix to my problem, but I don&#039;t know why it does work on one server and not the other one.



At the end of function _createMimeMessage  imp/lib/Compose.php

        return array(&#039;recipients&#039; =&gt; $to,

+                     &#039;to&#039; =&gt; str_replace(&#039;, ,&#039;,&#039;,&#039;,implode(&#039;, &#039;, $to)),

-                     &#039;to&#039; =&gt; implode(&#039;, &#039;, $to),

                     &#039;msg&#039; =&gt; &amp;$mime_message);



it seams that values in array $to ends with &quot;, &quot; and implode adds as well &quot;, &quot; which becomes &quot;, , &quot;

eg :

$arr = array();

$arr[] = &#039;email@email.com, &#039;;

$arr[] = &#039;email2@email.com, &#039;;

echo implode(&#039;, &#039;, $arr); // email@email.com, , email2@email.com, 





Then, from fonction sendMessage imp/lib/Compose.php 



IMP::parseAddressList($email, true, true) returns an array with 3 values insead of 2.



Can you reproduce the problem ?



Version of Mail/RFC822.php : Revision: 1.23





</description> 
   <pubDate>Fri, 25 Jul 2008 10:35:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7110#t47783</link> 
  </item> 
   
  <item> 
   <title>&gt; Using server A, from IMP, compose a new message and add at</title> 
   <description>&gt; Using server A, from IMP, compose a new message and add at least  two 

&gt; recipient. I get the following error when sending the message :

&gt; There was an error sending your message: Failed to add recipient: 

&gt; @mbpgroup.com [SMTP: Invalid response code received from server 

&gt; (code: 553, response: 5.1.3 &lt;@mbpgroup.com&gt;... User address required)]

&gt;

&gt; If I have only one recipient, the email is sent without any problem.

&gt; [...]

&gt; Can you reproduce the problem ?



Yes I can....

The same happens here.</description> 
   <pubDate>Fri, 25 Jul 2008 11:58:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7110#t47784</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/imp/lib/Compose.php?r1=1.375&amp;r2=1.376&amp;ty=u</description> 
   <pubDate>Fri, 25 Jul 2008 12:14:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7110#t47785</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/imp/lib/Compose.php?r1=1.107.2.71&amp;r2=1.107.2.72&amp;ty=u</description> 
   <pubDate>Fri, 25 Jul 2008 12:15:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7110#t47786</link> 
  </item> 
   
  <item> 
   <title>Fixed.</title> 
   <description>Fixed.</description> 
   <pubDate>Fri, 25 Jul 2008 12:15:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7110#t47787</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
