X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fmsg_template.pm;h=70a8e49eaf0e97c6ad1ba714db7fb2a9ed83c3e7;hb=f13c9d8580d02851b150e21ea9beb6fc1dfbd3c8;hp=65890e12552e50adb7a4b979652f659c98de16a3;hpb=7b777a5bf7fcdb0f966e3789e00f646febedc60c;p=freeside.git diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm index 65890e125..70a8e49ea 100644 --- a/FS/FS/msg_template.pm +++ b/FS/FS/msg_template.pm @@ -398,8 +398,10 @@ sub prepare { $from_addr = scalar( $conf->config($opt{'from_config'}, $cust_main->agentnum) ); } - $from_addr ||= scalar( $conf->config('invoice_from', - $cust_main->agentnum) ); + $from_addr ||= $conf->config('invoice_from_name', $cust_main->agentnum) ? + $conf->config('invoice_from_name', $cust_main->agentnum) . ' <' . + $conf->config('invoice_from', $cust_main->agentnum) . '>' : + $conf->config('invoice_from', $cust_main->agentnum); } # my @cust_msg = (); # if ( $conf->exists('log_sent_mail') and !$opt{'preview'} ) {