- $intnotes .= $main::locale->text('[email]') . "\n"
- . $main::locale->text('Date') . ": $now\n"
- . $main::locale->text('To (email)') . ": $form->{email}\n"
- . "${cc}${bcc}"
- . $main::locale->text('Subject') . ": $form->{subject}\n\n"
- . $main::locale->text('Message') . ": $form->{message}";
+ my $cc = $form->{cc} ? $main::locale->text('Cc') . ": $form->{cc}\n" : '';
+ my $bcc = $form->{bcc} ? $main::locale->text('Bcc') . ": $form->{bcc}\n" : '';
+ my $now = scalar localtime;