Author Topic: cannot cc mail to multiple recipients  (Read 7424 times)

Offline davidfarrar

  • Newbie
  • *
  • Posts: 1
cannot cc mail to multiple recipients
« on: February 11, 2009, 09:51:32 AM »
In svn revision 2288 (but also in some other recent versions - I'm not sure how far back)

it no longer seems possible to include multiple recipients in the to or cc fields. We've tried using spaces, commas, semicolons and newlines as a delimiter but in every case roundcube silently ignores the field while giving the impression that the mail was sent with no problem. Is anyone else seeing the same issue?

Offline drewpydraws

  • Newbie
  • *
  • Posts: 8
yes
« Reply #1 on: February 11, 2009, 11:45:32 PM »
Yes, i'm having the same problem.

If the last email address you enter comes from your address book then it works fine.

Offline drewpydraws

  • Newbie
  • *
  • Posts: 8
cannot cc mail to multiple recipients
« Reply #2 on: February 12, 2009, 12:35:58 AM »
I think I found a work around.

It seems to work. Although the way the email comes out of the system I don't know why it works.

In /program/steps/mail/sendmail.inc

Just after this line in the rcmail_mailto_format() function:
$mailto trim(preg_replace($regexp$replace$mailto));

Add this code:
$mailtoarray=explode(',',$mailto);

  for(
$x=0;$mailtoarray[$x];$x++)
  {
      
$mailtoarray[$x]=trim($mailtoarray[$x]);
  }
  
$mailto=implode(',',$mailtoarray);


Basically it strips the " " out of the email addresses. It seems to do some weird things with quote marks and adds them to the email address, but that doesn't appear to affect mail delivery for some reason. Be warned this could fuck everything up so be careful and make backups.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
cannot cc mail to multiple recipients
« Reply #3 on: February 12, 2009, 03:41:31 AM »
@ davidfarrar:

Please always post a link to the ticket URL, if you submit an issue to track and link ticket to forum thread. This way users can follow the ticket and devs can follow the discussion in the forum.

#1485733 (cannot cc mail to multiple recipients) ? RoundCube Webmail
Regards,
Rosali
__________________
MyRoundcube Project (commercial)