diff options
author | thomascube <thomas@roundcube.net> | 2011-01-18 18:00:57 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-01-18 18:00:57 +0000 |
commit | 0501b637a3177cce441166b5fcfe27c9bd9fbe0f (patch) | |
tree | 5460128ef65d2510a7538c4a0e7336987e090ca1 /program/steps/addressbook/mailto.inc | |
parent | e81a30752b244394b03cbcaa0df254c93b379782 (diff) |
Merge branch devel-addressbook (r4193:4382) back into trunk
Diffstat (limited to 'program/steps/addressbook/mailto.inc')
-rw-r--r-- | program/steps/addressbook/mailto.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/program/steps/addressbook/mailto.inc b/program/steps/addressbook/mailto.inc index d38ae9e62..702e1a61b 100644 --- a/program/steps/addressbook/mailto.inc +++ b/program/steps/addressbook/mailto.inc @@ -29,8 +29,10 @@ if ($cid && preg_match('/^[a-z0-9\+\/=_-]+(,[a-z0-9\+\/=_-]+)*$/i', $cid) && $CO $CONTACTS->set_pagesize(100); $recipients = $CONTACTS->search($CONTACTS->primary_key, $cid); - while (is_object($recipients) && ($rec = $recipients->iterate())) - $mailto[] = format_email_recipient($rec['email'], $rec['name']); + while (is_object($recipients) && ($rec = $recipients->iterate())) { + $emails = $CONTACTS->get_col_values('email', $rec, true); + $mailto[] = format_email_recipient($emails[0], $rec['name']); + } } if (!empty($mailto)) |