Skip to content

Commit

Permalink
Merge pull request #12 from FVSoftwareDeveloper/master
Browse files Browse the repository at this point in the history
fix issue with PHP8 and required paramater
  • Loading branch information
angelbencosme authored Apr 4, 2024
2 parents 1d2b287 + bd333b9 commit 31b60ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Service/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function sendFromTemplate($from, $to, $cc, $bcc, $subject, $template, $pa
* @return bool
*/
public function sendEmail($from, $to, $cc, $bcc, $subject, $html, $attachments = array(), $smtp = null) {
return $this->processEmail($from, $to, $cc, $bcc, $subject, $html, $attachments, $smtp);
return $this->processEmail($from, $to, $subject, $cc, $bcc, $html, $attachments, $smtp);
}

/**
Expand All @@ -89,9 +89,9 @@ public function resend(Email $email) {
$this->processEmail(
$email->getMessageFrom(),
$email->getMessageTo(),
$email->getMessageSubject(),
$email->getMessageCc(),
$email->getMessageBcc(),
$email->getMessageSubject(),
$email->getMessageBody(),
$email->getAttachments()
);
Expand Down Expand Up @@ -298,7 +298,7 @@ private function embedBase64Images(\Swift_Message $message, $body)
* @param array $attachments
* @return bool
*/
private function processEmail($from, $to, $cc = array(), $bcc = array(), $subject, $html = "", $attachments = array(), $smtp = null) {
private function processEmail($from, $to, $subject, $cc = array(), $bcc = array(), $html = "", $attachments = array(), $smtp = null) {

if($this->devMode) {
$to = $this->devTo;
Expand Down

0 comments on commit 31b60ec

Please sign in to comment.