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 |
Assigned to Michael Slusarz
State ⇒ Resolved
http://cvs.horde.org/diff.php/imp/lib/Compose.php?r1=1.107.2.71&r2=1.107.2.72&ty=u
http://cvs.horde.org/diff.php/imp/lib/Compose.php?r1=1.375&r2=1.376&ty=u
The same happens here.
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ error sending message
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
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