/**
* Gets the message body of this email (either html or plaintext)
*
- * @param boolean $text True, if returned as plaintext
+ * @param boolean $plain True, if returned as plaintext
*
* @return string
*/
- function getMessage(bool $text = false);
+ function getMessage(bool $plain = false);
/**
* Gets any additional mail header
"Content-Type: multipart/alternative; boundary=\"{$mimeBoundary}\"";
// assemble the final multipart message body with the text and html types included
- $textBody = chunk_split(base64_encode($email->getMessage()));
- $htmlBody = chunk_split(base64_encode($email->getMessage(true)));
+ $textBody = chunk_split(base64_encode($email->getMessage(true)));
+ $htmlBody = chunk_split(base64_encode($email->getMessage()));
$multipartMessageBody = "--" . $mimeBoundary . "\n" . // plain text section
"Content-Type: text/plain; charset=UTF-8\n" .
"Content-Transfer-Encoding: base64\n\n" .