Здравствуйте, использую скрипт PHP mailer 5.2.26. Ниже привожу код. Суть в функции "$mail->sign" при добавлении выходит ошибка "Signing Error: Could not write temp file". Предполагаю, что не хватает прав на какую-то папку, но на какую не могу понять. Права для пользователя активированы. В чём может быть проблема? PHP: <?php /** * Simple example script using PHPMailer with exceptions enabled * @package phpmailer * @version $Id$ */ date_default_timezone_set("Europe/Moscow"); // временная зона require 'class.phpmailer.php'; try { $mail = new PHPMailer(true); //New instance, with exceptions enabled $body = file_get_contents('contents.html'); $mail->IsSendmail(); // tell the class to use Sendmail $mail->AddReplyTo("[EMAIL]news@obzorsoft.ru[/EMAIL]","First Last"); $mail->CharSet = "UTF-8"; $mail->From = "[EMAIL]news@domain.ru[/EMAIL]"; $mail->FromName = "RB"; $mail->sign( 'exim.crt', //The location of your certificate file 'exim.key', //The location of your private key file //The password you protected your private key with (not the Import Password! //May be empty but the parameter must not be omitted! '', '' //The location of your chain file ); $to = "[EMAIL]mail@list.ru[/EMAIL]"; $mail->AddAddress($to); $mail->Subject = "First PHPMailer Message"; $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $mail->WordWrap = 80; // set word wrap $mail->MsgHTML($body); $mail->IsHTML(true); // send as HTML $mail->Send(); echo 'Message has been sent.'; } catch (phpmailerException $e) { echo $e->errorMessage(); } ?>