Skip to content

Commit

Permalink
If there's a template for the user send the mail
Browse files Browse the repository at this point in the history
  • Loading branch information
ainaraRT committed Jan 16, 2024
1 parent dcd4d81 commit eba65d8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 6 additions & 2 deletions modules/stic_Web_Forms/Catcher/Donation/DonationMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,15 @@ public function sendUserMail($templateId, $objWeb, $payment, $lang = null)

// Function to parse the email
$this->parsingEmail($templateId, $replacementObjects[1], $replacementObjects, $lang);
// End STIC 20231205 - ART

// Send the mail
$GLOBALS['log']->debug('Line ' . __LINE__ . ': ' . __METHOD__ . ": Sending mail...");
return $this->send();

// If there's a template for the user send the mail
if(!empty($templateId)) {
return $this->send();
}
// End STIC 20240116 - ART
}

// STIC 20230905 - ART - Enable custom email template for assigned user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,15 @@ protected function __sendUserMail($templateId, $objContactWeb, $event, $inscript

// Function to parse the email
$this->parsingEmail($templateId, $account, $payment, $replacementObjects, $lang);
// End STIC 20230921 - ART


// Send the mail
$GLOBALS['log']->debug('Line ' . __LINE__ . ': ' . __METHOD__ . ": Sending mail ...");
return $this->send();

// If there's a template for the user send the mail
if(!empty($templateId)) {
return $this->send();
}
// End STIC 20240116 - ART
}


Expand Down

0 comments on commit eba65d8

Please sign in to comment.