X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fmsg_template.pm;h=a35b2d19fefe122096881e8872ae0a41a9f7a910;hb=f9a181e4c2e505df84de16190ee3b75011326f3f;hp=f0cda41bf119c21c542fdb9305fdb6b01f2b6f5b;hpb=6d14d1fd9ddd1be4b13c05d44bb91bb8fcae519b;p=freeside.git diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm index f0cda41bf..a35b2d19f 100644 --- a/FS/FS/msg_template.pm +++ b/FS/FS/msg_template.pm @@ -178,7 +178,7 @@ rt_ticket export when exporting "replace" events. =item to Destination address. The default is to use the customer's -invoicing_list addresses. +invoicing_list addresses. Multiple addresses may be comma-separated. =back @@ -281,11 +281,14 @@ sub prepare { # and email ### - my @to = ($opt{'to'}) || $cust_main->invoicing_list_emailonly; - #warn "prepared msg_template with no email destination (custnum ". - # $cust_main->custnum.")\n" - # if !@to; - # warning is not appropriate now that we use these for tickets + my @to; + if ( exists($opt{'to'}) ) { + @to = split(/\s*,\s*/, $opt{'to'}); + } + else { + @to = $cust_main->invoicing_list_emailonly; + } + # no warning when preparing with no destination my $conf = new FS::Conf;