$this->extraHeaders[] = [$header, EmailGrammar::encodeQuotedPrintableHeader($value)];
}
- /**
- * Sets the body of this email.
- *
- * @param AbstractMimePart $body
- */
- public function setBody(AbstractMimePart $body) {
- $this->body = $body;
- }
-
/**
* Returns an array of [ name, value ] tuples representing the email's headers.
* Note: You must have set a Subject and at least one recipient, otherwise fetching the
}, $this->getHeaders()));
}
+ /**
+ * Sets the body of this email.
+ *
+ * @param AbstractMimePart $body
+ */
+ public function setBody(AbstractMimePart $body) {
+ $this->body = $body;
+ }
+
+ /**
+ * Returns the body of this email.
+ *
+ * @return AbstractMimePart
+ */
+ public function getBody() {
+ return $this->body;
+ }
+
/**
* Returns the email's body as a string.
*