From: Jay R. <cry...@us...> - 2005-05-31 02:47:09
|
Update of /cvsroot/gallery/gallery2/modules/core/classes/helpers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18314/classes/helpers Modified Files: MailHelper_simple.class Log Message: MailHelperSimple::SendTemplatedEmail wasn't properly parsing the CSV to fields and sending to multiple recipients Index: MailHelper_simple.class =================================================================== RCS file: /cvsroot/gallery/gallery2/modules/core/classes/helpers/MailHelper_simple.class,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- MailHelper_simple.class 4 May 2005 14:13:30 -0000 1.2 +++ MailHelper_simple.class 31 May 2005 02:47:00 -0000 1.3 @@ -84,10 +84,12 @@ } $platform = $gallery->getPlatform(); - $success = $platform->mail($to, $subject, $emailText, $headers); - if (!$success) { - return GalleryStatus::error(ERROR_UNKNOWN, __FILE__, __LINE__, - 'Could not send mail to ' . $to); + foreach(explode(',', $to) as $mailTo) { + $success = $platform->mail($mailTo, $subject, $emailText, $headers); + if (!$success) { + return GalleryStatus::error(ERROR_UNKNOWN, __FILE__, __LINE__, + 'Could not send mail to ' . $mailTo); + } } return GalleryStatus::success(); |