diff --git a/mail.php b/mail.php index 496c6ee..502a861 100644 --- a/mail.php +++ b/mail.php @@ -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 */