I'm trying to add a contact form to my website. In localhost it worked fine, now moving on Tiscali server I'm getting this error:
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`
Fatal error: 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`
Parameter I'm using:
define('HOST_SMTP', 'smtp.mydomain.it');
define('PORT_SMTP', 465);
define('SECUTITY_SMTP', ssl);
define('EMAIL_SMTP', '
[email protected]');
define('PASSWORD_SMTP', 'xxxxxxx');
define('EMAIL_DESTINATARIO', $_POST['destinatario']);
define('MAX_DIM_FILE', 1048576); // 1mb