Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] problem z funkcja mail()
Wojtek_W
post
Post #1





Grupa: Zarejestrowani
Postów: 10
Pomógł: 0
Dołączył: 26.08.2006

Ostrzeżenie: (0%)
-----


[php]Probuje wywolac skrypt z funkcja mail().
Pojawia sie taki komunikat:
' Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or
custom "From:" header missing in c:\program files\apache
group\Apache\htdocs\prj\rozdzial_04\pajtemp.php on line 13 '

Prosze o pomoc grupowiczow jak sobie z tym poradzic,
dodam ze z Edytowalem(usunolem srednik przed 'from=john...@doe.com) plik
php.ini w katalogu c:\windows, uzywam systemu XP.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Mirer
post
Post #2





Grupa: Zarejestrowani
Postów: 10
Pomógł: 0
Dołączył: 23.08.2006

Ostrzeżenie: (0%)
-----


// Lonas - fart w tym samym czasie

Cytat(Wojtek_W @ 27.08.2006, 12:07 ) *
Dzieki za sugestie Lonas. W pliku konfiguracyjnym Apacha (httpd.conf) jest nastepujaca opcja:
# Set to one of: On | Off | EMail

Zmodyfikowalem ja nastepujaco:

Set to one of: On | EMail

Okazalo sie, ze serwer wogole przestal dzialac. Czy ktos moglby pomoc mi wybrnac z tego problemu?


Proponuję czytać całą linijkę:

# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of: On | Off | EMail" title="Zobacz w manualu php" target="_manual">
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of: On | Off | EMail

To się nie odnosi do funkcji mail().

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;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_paramaters =" title="Zobacz w manualu php" target="_manual">
[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;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_paramaters =

Zainstaluj serwer pocztowy lub korzystaj z wysyłania maili przez SMTP.

Ten post edytował Mirer 27.08.2006, 11:33:01
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 6.10.2025 - 12:33