Skip to content

Commit

Permalink
AddText method added
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Dec 13, 2023
1 parent 6f68b02 commit 302227d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Ease/Mailer.php
Expand Up @@ -215,6 +215,16 @@ public function addFile(string $filename, $mimeType = 'text/plain')
return $this->mimer->addAttachment($filename, $mimeType);
}

/**
* Add Text to mail
*
* @param string $text
*/
public function addText($text)
{
$this->textBody .= $text;
}

/**
* Sends mail.
*/
Expand Down

0 comments on commit 302227d

Please sign in to comment.