Swift_Mime_MimeEntity::getBody PHP Method

getBody() public method

Returns NULL if no body has been set.
public getBody ( ) : string | null
return string | null
    public function getBody();

Usage Example

Example #1
0
 /**
  * @param \Swift_Mime_MimeEntity $message
  *
  * @throws \TijsVerkoyen\CssToInlineStyles\Exception
  */
 private function convert(\Swift_Mime_MimeEntity $message)
 {
     if ($message->getContentType() !== 'text/plain') {
         $this->inliner->setCSS('');
         $this->inliner->setHTML($message->getBody());
         $message->setBody($this->inliner->convert());
     }
 }
All Usage Examples Of Swift_Mime_MimeEntity::getBody