[Tickets #7110] error sending message

bugs at horde.org bugs at horde.org
Fri Jul 25 10:35:42 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7110
------------------------------------------------------------------------------
  Ticket             | 7110
  Created By         | rsalmon at mbpgroup.com
  Summary            | error sending message
  Queue              | IMP
  Version            | HEAD
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


rsalmon at mbpgroup.com (2008-07-25 06:35) wrote:

I have to servers : exact same CVS and config files (same SMTP server)  
and we don'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 <@mbpgroup.com>... 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'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('recipients' => $to,
+                     'to' => str_replace(', ,',',',implode(', ', $to)),
-                     'to' => implode(', ', $to),
                      'msg' => &$mime_message);

it seams that values in array $to ends with ", " and implode adds as  
well ", " which becomes ", , "
eg :
$arr = array();
$arr[] = 'email at email.com, ';
$arr[] = 'email2 at email.com, ';
echo implode(', ', $arr); // email at email.com, , email2 at 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








More information about the bugs mailing list