Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision bbb857d2

Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt

  • ID bbb857d2cb48be500571d9b2496a509a8df2b804
  • Vorgänger 6c7b457f
  • Nachfolger 9ab6d426

Auftrags-/LS-/Reklamation: neue Controller: BCC nicht vorbelegen mit globaler BCC

Die glovbale BCC-Adresse wird beim Versenden autoamtisch angehängt. Also
nicht in der Maske vorbelegen, sonst bekommt der Empfänger die Mails
doppelt.

Unterschiede anzeigen:

SL/Controller/DeliveryOrder.pm
428 428
  $email_form->{to}   = $self->order->contact->cp_email if $self->order->contact;
429 429
  $email_form->{to} ||= $self->order->$cv_method->email;
430 430
  $email_form->{cc}   = $self->order->$cv_method->cc;
431
  $email_form->{bcc}  = join ', ', grep $_, $self->order->$cv_method->bcc, SL::DB::Default->get->global_bcc;
431
  $email_form->{bcc}  = join ', ', grep $_, $self->order->$cv_method->bcc;
432 432
  # Todo: get addresses from shipto, if any
433 433

  
434 434
  my $form = Form->new;
SL/Controller/Order.pm
506 506
  $email_form->{to}   = $self->order->contact->cp_email if $self->order->contact;
507 507
  $email_form->{to} ||= $self->order->$cv_method->email;
508 508
  $email_form->{cc}   = $self->order->$cv_method->cc;
509
  $email_form->{bcc}  = join ', ', grep $_, $self->order->$cv_method->bcc, SL::DB::Default->get->global_bcc;
509
  $email_form->{bcc}  = join ', ', grep $_, $self->order->$cv_method->bcc;
510 510
  # Todo: get addresses from shipto, if any
511 511

  
512 512
  my $form = Form->new;
SL/Controller/Reclamation.pm
491 491
  $email_form->{to}   = $self->reclamation->contact->cp_email if $self->reclamation->contact;
492 492
  $email_form->{to} ||= $self->reclamation->customervendor->email;
493 493
  $email_form->{cc}   = $self->reclamation->customervendor->cc;
494
  $email_form->{bcc}  = join ', ', grep $_, $self->reclamation->customervendor->bcc, SL::DB::Default->get->global_bcc;
494
  $email_form->{bcc}  = join ', ', grep $_, $self->reclamation->customervendor->bcc;
495 495
  # TODO: get addresses from shipto, if any
496 496
  $email_form->{subject}             = $form->generate_email_subject();
497 497
  $email_form->{attachment_filename} = $form->generate_attachment_filename();

Auch abrufbar als: Unified diff