我正在尝试将联系表添加到我的网站。在 localhost 中它运行良好,现在在 Tiscali 服务器上移动我收到此错误:
Warning: is_writable() [function.is-writable]: open_basedir restriction in effect.
File(/tmp) is not within the allowed path(s):
(/var/www/virtual/mydomain.it/:/usr/share/php/:/var/www/ispcp/gui/tools/filemanager/) in /var/www/virtual/mydomain.it/htdocs/prova-intro/Swift-4.1.6/lib/preferences.php on line 15`
致命错误: Uncaught exception Swift_TransportException' with message
'Expected response code 220 but got code "554",
with message "554 santino.mail.tiscali.it ESMTP server not available from your IP "' in /var/www/virtual/mydomain.it/htdocs/prova-intro/Swift-4.1.6/lib/classes/Swift/Transport/AbstractSmtpTransport.php:422 Stack trace: #0 /var/www/virtual/mydomain.it/htdocs/prova-intro/Swift-4.1.6/lib/classes/Swift/Transport/AbstractSmtpTransport.php(315):`
Swift_Transport_AbstractSmtpTransport->_assertResponseCode('554 santino.mai...', Array)
#1 /var/www/virtual/mydomain.it/htdocs/prova-intro/Swift-4.1.6/lib/classes/Swift/Transport/AbstractSmtpTransport.php(123): Swift_Transport_AbstractSmtpTransport->_readGreeting()
#2 /var/www/virtual/mydomain.it/htdocs/prova-intro/Swift-4.1.6/lib/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start()
#3 /var/www/virtual/mydomain.it/htdocs/prova-intro/mail_SwiftMailer.php(129): Swift_Mailer->send(Object(Swift_Message) in /var/www/virtual/mydomain.it/htdocs/prova-intro/Swift-4.1.6/lib/classes/Swift/Transport/AbstractSmtpTransport.php on line 422`
我正在使用的参数:
define('HOST_SMTP', 'smtp.mydomain.it');
define('PORT_SMTP', 465);
define('SECUTITY_SMTP', ssl);
define('EMAIL_SMTP', 'info@mydomain.it');
define('PASSWORD_SMTP', 'xxxxxxx');
define('EMAIL_DESTINATARIO', $_POST['destinatario']);
define('MAX_DIM_FILE', 1048576); // 1mb