6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/21/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7110] error sending message
*
Your Email Address
*
Spam protection
Enter the letters below:
. .. ..___..__ .__ |__|\ / _/ [__)[__) | | \/ ./__.| \|
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 > > > > > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers