Wiem że to kolejny temat z tym problemem jednak sprawdziłem większość z googla (nawet angielskie) i dalej problem jest,
pracuje na kohanie i taki blad mi zwraca
mail() [function.mail]: Failed to connect to mailserver at
"localhost" port
25, verify your
"SMTP" and
"smtp_port" setting in php
.ini or use
ini_set()
na routerze ustawiałem port 25 na SMTP
php.ini
; For Win32 only.
; <a href="http://php.net/smtp" target="_blank">http://php.net/smtp</a>
SMTP = localhost
; <a href="http://php.net/smtp-port" target="_blank">http://php.net/smtp-port</a>
smtp_port = 25
; For Win32 only.
; <a href="http://php.net/sendmail-from" target="_blank">http://php.net/sendmail-from</a>
sendmail_from = postmaster@localhost
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; <a href="http://php.net/sendmail-path" target="_blank">http://php.net/sendmail-path</a>
;sendmail_path = "\"\xampp\sendmail\sendmail.exe\" -t"
; 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
; Log all
mail() calls including the full path of the script
, line
#, to address and headers ;mail.log = "\xampp\apache\logs\php_mail.log"
sendmail.ini
# Example for a user configuration file
# Set default values for all following accounts.
defaults
logfile "\xampp\sendmail\sendmail.log"
# Mercury
account Mercury
host localhost
from postmaster@localhost
auth off
# A freemail service example
account Hotmail
tls on
tls_certcheck off
host smtp.live.com
from [exampleuser]@hotmail.com
auth on
user [exampleuser]@hotmail.com
password [examplepassword]
# Set a default account
account default : Mercury
Bardzo proszę o pomoc, nagłówki są wysłane, funkcja jest wywoływana:
$headers = 'MIME-Version: 1.0'."\r\n";
$headers .= 'Content-type: text/html; charset=utf-8'."\r\n";
mail($email, $temat, $wiadomosc, $headers);
wszystkie zmienne są.
;sendmail_path = "\"\xampp\sendmail\sendmail.exe\" -t"
usunąłem z tego średnik teraz sie uruchamia bez błędu, ale maile nie dochodzą a tak w ogole to ja wysyłam na serwery interii.pl czy to w ogole jest możliwe? Czy ja przypadkiem moge wysylac jedynie na localhosta?
moge zapłacić SMSem do 15zł za pomoc.....