Set Body
Email Core_Email::message( string $body )
参数列表
参数 类型 描述 默认值 $body
string
Email
public function message($body)
{
$this->_body = rtrim(str_replace("\r", '', $body));
/* strip slashes only if magic quotes is ON
if we do it with magic quotes OFF, it strips real, user-inputted chars.
NOTE: In PHP 5.4 get_magic_quotes_gpc() will always return 0 and
it will probably not exist in future versions at all.
*/
if (MAGIC_QUOTES_GPC && !version_compare(PHP_VERSION, '5.4', '>='))
{
$this->_body = stripslashes($this->_body);
}
return $this;
}