Skip to content

Commit 31b60ec

Browse files
Merge pull request #12 from FVSoftwareDeveloper/master
fix issue with PHP8 and required paramater
2 parents 1d2b287 + bd333b9 commit 31b60ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Service/Mailer.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function sendFromTemplate($from, $to, $cc, $bcc, $subject, $template, $pa
7777
* @return bool
7878
*/
7979
public function sendEmail($from, $to, $cc, $bcc, $subject, $html, $attachments = array(), $smtp = null) {
80-
return $this->processEmail($from, $to, $cc, $bcc, $subject, $html, $attachments, $smtp);
80+
return $this->processEmail($from, $to, $subject, $cc, $bcc, $html, $attachments, $smtp);
8181
}
8282

8383
/**
@@ -89,9 +89,9 @@ public function resend(Email $email) {
8989
$this->processEmail(
9090
$email->getMessageFrom(),
9191
$email->getMessageTo(),
92+
$email->getMessageSubject(),
9293
$email->getMessageCc(),
9394
$email->getMessageBcc(),
94-
$email->getMessageSubject(),
9595
$email->getMessageBody(),
9696
$email->getAttachments()
9797
);
@@ -298,7 +298,7 @@ private function embedBase64Images(\Swift_Message $message, $body)
298298
* @param array $attachments
299299
* @return bool
300300
*/
301-
private function processEmail($from, $to, $cc = array(), $bcc = array(), $subject, $html = "", $attachments = array(), $smtp = null) {
301+
private function processEmail($from, $to, $subject, $cc = array(), $bcc = array(), $html = "", $attachments = array(), $smtp = null) {
302302

303303
if($this->devMode) {
304304
$to = $this->devTo;

0 commit comments

Comments
 (0)