6.0.0-beta1
7/3/25

[#7110] error sending message
Summary error sending message
Queue IMP
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester rsalmon (at) mbpgroup (dot) com
Created 07/25/2008 (6187 days ago)
Due
Updated 07/25/2008 (6187 days ago)
Assigned
Resolved 07/25/2008 (6187 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/25/2008 12:15:23 PM Michael Slusarz Comment #5
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
Fixed.
07/25/2008 12:15:10 PM CVS Commit Comment #4 Reply to this comment
07/25/2008 12:14:38 PM CVS Commit Comment #3 Reply to this comment
Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/imp/lib/Compose.php?r1=1.375&r2=1.376&ty=u
07/25/2008 11:58:12 AM adrieder (at) sbox (dot) tugraz (dot) at Comment #2 Reply to this comment

[Show Quoted Text - 9 lines]
Yes I can....

The same happens here.
07/25/2008 10:35:41 AM rsalmon (at) mbpgroup (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ error sending message
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
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@email.com, ';

$arr[] = 'email2@email.com, ';

echo implode(', ', $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






Saved Queries