Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Funkcja mail() nie działa
michat34
post
Post #1





Grupa: Zarejestrowani
Postów: 200
Pomógł: 1
Dołączył: 4.08.2012

Ostrzeżenie: (10%)
X----


wiem ze jest w internecie sporo takich tematow ale nie pomogły mi. wczesniej uzywałem funkcji mail i nie było rpoblemu. dzis robiłem format dysku, wiec wszystko od nowa poszło. no i nie moge uzywac mail ().

zamiast mail jest:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\test.php on line 2

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = localhost

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path =

; 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 =


uzywam win 7 jak cos.

co moze byc problemem? konfiguracja ini chyba okej może te porty nieszczesne?

EDIT: wlasnie czytalem ze mozliwe ze trzeb zaintstalowac ten serwer smtp np. postcast, ale to dziwne ze wczesniej chodziło bez niego. powininem go instalowac? nie znam sie na tym a w ciemno wole nie instalowac nic jak nie potrzebne

Ten post edytował michat34 15.09.2012, 07:40:58
Go to the top of the page
+Quote Post

Posty w temacie


Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 06:18