From b0da0c6242a4147fbfa6d9268390c617e88da513 Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 29 Dec 2010 00:02:18 +0000 Subject: send_email export, RT#10884 --- FS/FS/msg_template.pm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'FS/FS/msg_template.pm') diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm index f0cda41..a35b2d1 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; -- cgit v1.1