Salve a tutti, sto lavorando il locale e non riesco a inviare l'email,
il php.ini l'ho settato così:
Codice PHP:
; For Win32 only.
SMTP = smtp.tele2.it
smtp_port = 25
; For Win32 only. sendmail_from = [email]xxxx@tele2.it[/email]
questo è il mio codice
Codice PHP:
$venditore=$mailv['email']; $oggetto="l'oggetto è stato acquistato";
$messaggio="l'oggetto è stato acquistato";
$header = "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$header .= 'From: "Admin" <diflorioae@tele2.it> \r\n';
mail($venditore, $oggetto, $messaggio,$header);
e questo è l'errore:
Codice PHP:
Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.tele2.it" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\xampp\htdocs\acquisto2.php on line 39
Sapreste aiutarmi? grazie