Skip to content

Commit

Permalink
test with actual email
Browse files Browse the repository at this point in the history
  • Loading branch information
EsubalewAmenu committed Dec 9, 2024
1 parent 0e2e983 commit 542f4a6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions admin/controller/promotion/send.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,11 @@ function mp_mail_promotions_status_change_event($new_status, $old_status, $post)

include_once mp_mails_PLAGIN_DIR . '/email_templete/templetes.php';
$Mp_mails_templetes = new Mp_mails_templetes();
$bodyReplacements['body1'] = $post->post_title;
$bodyReplacements['body2'] = $user->user_login;
$bodyReplacements['body3'] = $email_content;
$bodyReplacements['body1'] = $user->user_login;
// $Mp_mails_templetes->template2($user->user_email, 'promotional-email-template', [], $bodyReplacements);


$is_sent = $Mp_mails_templetes->template2($user->user_email, 'mindplex-publication-template', [], $bodyReplacements);
$is_sent = $Mp_mails_templetes->template2($user->user_email, 'giveaway-campaign-winner', [], $bodyReplacements);

echo "is sent is " . $is_sent;

Expand Down

0 comments on commit 542f4a6

Please sign in to comment.