From ca7ee5d01f7a5a620ac01d1279430d3160e0e6d3 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 20 Jul 2016 11:37:41 +0000 Subject: [PATCH] mail : add setSubject method git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2927 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- mail.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 */