Skip to content

Commit

Permalink
Simple Mailer sendig fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Oct 18, 2023
1 parent 7c26f14 commit fa2a461
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Ease/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Mailer extends Sand
*
* @var array
*/
public $mailBody = null;
public $mailBody = '';

/**
*
Expand Down Expand Up @@ -229,10 +229,9 @@ public function send()
}
$this->sendResult = $this->mailer->send(
$this->emailAddress,
(empty($this->mailHeadersDone) ? $this->mailHeaders : $this->mailHeadersDone),
$this->mailBody
$this->mimer->headers($this->mailHeaders),
$this->mimer->get()
);

if ($this->notify === true) {
$mailStripped = str_replace(['<', '>'], '', $this->emailAddress);
if ($this->sendResult === true) {
Expand Down

0 comments on commit fa2a461

Please sign in to comment.