Added Sender to Preordernotification

This commit is contained in:
Frank Schubert
2023-01-26 20:27:59 +01:00
parent fabb46851d
commit b8d7bd3956
3 changed files with 42 additions and 5 deletions
@@ -234,6 +234,9 @@ class PreordernotificationController extends mfBaseController {
//var_dump($filter);
$data = [];
$data['preordercampaign_id'] = $campaign_id;
$data['sender_email'] = $r->sender_email;
$data['sender_name'] = $r->sender_name;
$data['sender_replyto'] = $r->sender_replyto;
$data['subject'] = $r->subject;
$data['body_html'] = $r->body_html;
$data['note'] = $r->note;
@@ -371,7 +374,7 @@ class PreordernotificationController extends mfBaseController {
$this->redirect("Preordernotification", "edit", ['id' => $new_id]);
}
$notification->sendToPreorder($preorder, $r->testmail_to);
$this->layout()->setFlash("Testmail versendet", "success");
$this->layout()->setFlash("Test Email erfolgreich versendet", "success");
$this->redirect("Preordernotification", "edit", ['id' => $new_id]);
}