]> git.mxchange.org Git - friendica-addons.git/blobdiff - mailstream/phpmailer/class.phpmailer.php
#8374: Removed wrapper from css
[friendica-addons.git] / mailstream / phpmailer / class.phpmailer.php
index 8ff13f11046ae84bc49d2397ef49ec9e3e93ba80..46ff4360c259b75e2935b37ef9866c6ddd78e639 100644 (file)
@@ -176,7 +176,7 @@ class PHPMailer
     public $UseSendmailOptions = true;
 
     /**
-     * Path to PHPMailer plugins.
+     * Path to PHPMailer addons.
      * Useful if the SMTP class is not in the PHP include path.
      * @var string
      * @deprecated Should not be needed now there is an autoloader.
@@ -2350,11 +2350,11 @@ class PHPMailer
                     throw new phpmailerException($this->lang('extension_missing') . 'openssl');
                 }
                 // @TODO would be nice to use php://temp streams here, but need to wrap for PHP < 5.1
-                $file = tempnam(sys_get_temp_dir(), 'mail');
+                $file = tempnam(get_temppath(), 'mail');
                 if (false === file_put_contents($file, $body)) {
                     throw new phpmailerException($this->lang('signing') . ' Could not write temp file');
                 }
-                $signed = tempnam(sys_get_temp_dir(), 'signed');
+                $signed = tempnam(get_temppath(), 'signed');
                 //Workaround for PHP bug https://bugs.php.net/bug.php?id=69197
                 if (empty($this->sign_extracerts_file)) {
                     $sign = @openssl_pkcs7_sign(