mail : add setSubject method

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2927 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-07-20 11:37:41 +00:00
parent 4ff02b11a4
commit ca7ee5d01f

View File

@@ -946,6 +946,16 @@ class mail
return reset ($from);
}
/** Set the subject
* @param string In UTF8
*/
public function setSubject ($subject)
{
$this->setHeader ("Subject",
$this->encodeHeaders ("Subject", $subject,
"quoted-printable"));
}
/** Set the Date
* @param string $date In RFC 2822 format
*/