aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freeswitch/freeswitch_mailto.tmp
diff options
context:
space:
mode:
Diffstat (limited to 'packages/freeswitch/freeswitch_mailto.tmp')
-rw-r--r--packages/freeswitch/freeswitch_mailto.tmp10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/freeswitch/freeswitch_mailto.tmp b/packages/freeswitch/freeswitch_mailto.tmp
index f24ce26a..23645570 100644
--- a/packages/freeswitch/freeswitch_mailto.tmp
+++ b/packages/freeswitch/freeswitch_mailto.tmp
@@ -206,7 +206,15 @@ ob_start();
$mail->AltBody = $textplain; // optional, comment out and test
$mail->MsgHTML($texthtml);
- $mail->AddAddress($var['To']);
+
+ $tmp_to = $var['To'];
+ $tmp_to = str_replace(";", ",", $tmp_to);
+ $tmp_to_array = split(",", $tmp_to);
+ foreach($tmp_to_array as $tmp_to_row) {
+ if (strlen($tmp_to_row) > 0) {
+ $mail->AddAddress($tmp_to_row);
+ }
+ }
if (strlen($strwav) > 0) {
//$mail->AddAttachment("/usr/local/freeswitch/data/domain/example.wav"); // attachment