diff options
author | mark <mark> | 2011-07-01 05:33:55 +0000 |
---|---|---|
committer | mark <mark> | 2011-07-01 05:33:55 +0000 |
commit | 4b80fe118da16b21603fcdbd090bc03d8fbf0578 (patch) | |
tree | fe5960c7c4ad7514dc46bd37e8e09cb86f266845 /FS/FS/msg_template.pm | |
parent | 2c69cd41531a493c45ea72da3aa379fcc9f70aa9 (diff) |
send email from customer view, #13444
Diffstat (limited to 'FS/FS/msg_template.pm')
-rw-r--r-- | FS/FS/msg_template.pm | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm index 4a1e345..e90cffd 100644 --- a/FS/FS/msg_template.pm +++ b/FS/FS/msg_template.pm @@ -193,11 +193,6 @@ The I<from_addr> field in the template takes precedence over this. Destination address. The default is to use the customer's invoicing_list addresses. Multiple addresses may be comma-separated. -=item preview - -Set to true when preparing a message for previewing, rather than to actually -send it. This turns off logging. - =back =cut @@ -318,16 +313,16 @@ sub prepare { $from_addr ||= scalar( $conf->config('invoice_from', $cust_main->agentnum) ); } - my @cust_msg = (); - if ( $conf->exists('log_sent_mail') and !$opt{'preview'} ) { - my $cust_msg = FS::cust_msg->new({ - 'custnum' => $cust_main->custnum, - 'msgnum' => $self->msgnum, - 'status' => 'prepared', - }); - $cust_msg->insert; - @cust_msg = ('cust_msg' => $cust_msg); - } +# my @cust_msg = (); +# if ( $conf->exists('log_sent_mail') and !$opt{'preview'} ) { +# my $cust_msg = FS::cust_msg->new({ +# 'custnum' => $cust_main->custnum, +# 'msgnum' => $self->msgnum, +# 'status' => 'prepared', +# }); +# $cust_msg->insert; +# @cust_msg = ('cust_msg' => $cust_msg); +# } ( 'custnum' => $cust_main->custnum, @@ -339,7 +334,6 @@ sub prepare { 'html_body' => $body, 'text_body' => HTML::FormatText->new(leftmargin => 0, rightmargin => 70 )->format( HTML::TreeBuilder->new_from_content($body) ), - @cust_msg, ); } |