Salve ragazzi... ho un problema abbastanza urgente... non riesco a inviare le mail dal mio sito php da quando gira su linux... uso xampp (chiamato lampp) e il codice è il seguente:
Codice PHP:
mail($to, $obj, $msg, "From: ".$from);
non mi restituisce nessun errore.. anzi mi restituisce true la funzione! peccato la mail non venga inviata! non ricevo nessun email... questo è il php.ini
Codice PHP:
[mail function]
; For Win32 only.
; [url]http://php.net/smtp[/url]
;SMTP = localhost
;SMTP = smtp.fastwebnet.it
; [url]http://php.net/smtp-port[/url]
;smtp_port = 25
; For Win32 only.
; [url]http://php.net/sendmail-from[/url]
;sendmail_from = [email]me@example.com[/email]
;sendmail_from = [email]giacomo.consonni@gmail.com[/email]
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; [url]http://php.net/sendmail-path[/url]
sendmail_path = sendmail -t -i
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = On
; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =
usando linux sovrei soltanto configurare il sendmail_path no? o messo quello di default non sapendo cosa sia...
ho provato a scaricare anche postfix ma non essendo esperto di linux non so come usarlo.... soluzioni possibili?!
Grazie!