Решил поставить мод invite. Так как настраивать sendmail на сервере муторно решил поставить плагин smtp который выдает ошибку:
<?php
Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/smtp/phpmailer/class.phpmailer.php' (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/******/sites/all/modules/smtp/smtp.module on line 246?>
В чем может быть ошибка? Сервер стоит на генту php собран с такими параметрами:
'./configure' '--prefix=/usr/lib/php5' '--host=i486-pc-linux-gnu' '--mandir=/usr/lib/php5/man' '--infodir=/usr/lib/php5/info' '--sysconfdir=/etc' '--cache-file=./config.cache' '--with-pcre-regex=/usr' '--disable-cli' '--enable-cgi' '--enable-fastcgi' '--disable-discard-path' '--enable-force-cgi-redirect' '--with-config-file-path=/etc/php/cgi-php5' '--with-config-file-scan-dir=/etc/php/cgi-php5/ext-active' '--without-pear' '--disable-bcmath' '--with-bz2' '--disable-calendar' '--without-curl' '--without-curlwrappers' '--disable-dbase' '--disable-exif' '--without-fbsql' '--without-fdftk' '--disable-filter' '--disable-ftp' '--with-gettext' '--without-gmp' '--disable-hash' '--disable-json' '--without-kerberos' '--enable-mbstring' '--with-mcrypt' '--without-mhash' '--without-msql' '--without-mssql' '--without-ncurses' '--with-openssl' '--with-openssl-dir=/usr' '--disable-pcntl' '--disable-pdo' '--without-pgsql' '--disable-posix' '--without-pspell' '--without-recode' '--disable-reflection' '--disable-simplexml' '--disable-shmop' '--without-snmp' '--disable-soap' '--disable-sockets' '--without-sybase' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-tidy' '--disable-tokenizer' '--disable-wddx' '--disable-xmlreader' '--disable-xmlwriter' '--without-xmlrpc' '--without-xsl' '--disable-zip' '--with-zlib' '--disable-debug' '--without-cdb' '--without-db4' '--disable-flatfile' '--without-gdbm' '--disable-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--disable-gd-jis-conv' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--without-xpm-dir' '--with-gd' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-mysqli=/usr/bin/mysql_config' '--without-readline' '--without-libedit' '--without-mm' '--without-sqlite'
В чем может быть проблема?
Комментарии
Проблему которая выше решил, но так и не отправляеются сообщения. Может кто знает обезательно ли юзать ssl для gmail.com (или mail.ru)
Ошибка такая:
SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "220 mail.ru ESMTP Sat, 03 Oct 2009 16:51:38 +0400 " SMTP -> get_lines(): $data is "220 mail.ru ESMTP Sat, 03 Oct 2009 16:51:38 +0400 " SMTP -> FROM SERVER: 220 mail.ru ESMTP Sat, 03 Oct 2009 16:51:38 +0400 SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250-mx33.mail.ru Hello localhost [89.179.207.222] " SMTP -> get_lines(): $data is "250-mx33.mail.ru Hello localhost [89.179.207.222] " SMTP -> get_lines(): $data was "250-mx33.mail.ru Hello localhost [89.179.207.222] " SMTP -> get_lines(): $str is "250-SIZE 31457280 " SMTP -> get_lines(): $data is "250-mx33.mail.ru Hello localhost [89.179.207.222] 250-SIZE 31457280 " SMTP -> get_lines(): $data was "250-mx33.mail.ru Hello localhost [89.179.207.222] 250-SIZE 31457280 " SMTP -> get_lines(): $str is "250-8BITMIME " SMTP -> get_lines(): $data is "250-mx33.mail.ru Hello localhost [89.179.207.222] 250-SIZE 31457280 250-8BITMIME " SMTP -> get_lines(): $data was "250-mx33.mail.ru Hello localhost [89.179.207.222] 250-SIZE 31457280 250-8BITMIME " SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN " SMTP -> get_lines(): $data is "250-mx33.mail.ru Hello localhost [89.179.207.222] 250-SIZE 31457280 250-8BITMIME 250-AUTH PLAIN LOGIN " SMTP -> get_lines(): $data was "250-mx33.mail.ru Hello localhost [89.179.207.222] 250-SIZE 31457280 250-8BITMIME 250-AUTH PLAIN LOGIN " SMTP -> get_lines(): $str is "250 PIPELINING " SMTP -> get_lines(): $data is "250-mx33.mail.ru Hello localhost [89.179.207.222] 250-SIZE 31457280 250-8BITMIME 250-AUTH PLAIN LOGIN 250 PIPELINING " SMTP -> FROM SERVER: 250-mx33.mail.ru Hello localhost [89.179.207.222] 250-SIZE 31457280 250-8BITMIME 250-AUTH PLAIN LOGIN 250 PIPELINING SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 " SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 " SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 " SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 " SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "235 Authentication succeeded " SMTP -> get_lines(): $data is "235 Authentication succeeded " SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "501 sender address must match authenticated user " SMTP -> get_lines(): $data is "501 sender address must match authenticated user " SMTP -> FROM SERVER: 501 sender address must match authenticated user SMTP -> ERROR: MAIL not accepted from server: 501 sender address must match authenticated user SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250 Reset OK " SMTP -> get_lines(): $data is "250 Reset OK " SMTP -> FROM SERVER: 250 Reset OK
* Конфигурация сохранена
* SMTP.module is active.
* A test e-mail has been sent to ****@*****. You may want to check the logs for any error messages.
Как решили то проблему? Понятно, что появилась новая, но лучше всегда писать найденное решение, так как иначе топики получаются бессмысленные...
В общем написал кратенький мануал, читать тут http://www.drupal.ru/node/74539