Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [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
Lonas
post
Post #2





Grupa: Zarejestrowani
Postów: 576
Pomógł: 14
Dołączył: 9.11.2005

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


Nie masz ustawionej funkcji mail() na serwerze
Go to the top of the page
+Quote Post
Wojtek_W
post
Post #3





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

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


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?
Go to the top of the page
+Quote Post
Lonas
post
Post #4





Grupa: Zarejestrowani
Postów: 576
Pomógł: 14
Dołączył: 9.11.2005

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


a masz taki wpis w php.ini ?

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

; For Win32 only.
sendmail_from = mail@mail.pl
Go to the top of the page
+Quote Post
Mirer
post
Post #5





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
Tmavy
post
Post #6





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 27.08.2006

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


Witajte Wojteh, damy rade jakos uporac sie z tą niesforna funkcja mail() Tylko cholebka jaka jest nazwa tego pocztowego ciezko znalezc takowy programik w necie.
Go to the top of the page
+Quote Post
Mirer
post
Post #7





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

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


A chociażby Free SMTP Server,
Go to the top of the page
+Quote Post
Tmavy
post
Post #8





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 27.08.2006

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


Dzieki (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
Wojtek_W
post
Post #9





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

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


Chlopaki, dzieki za pomoc. mam nadzieje, ze w koncu z tym jakos rusze...
pozdr
Go to the top of the page
+Quote Post
Lonas
post
Post #10





Grupa: Zarejestrowani
Postów: 576
Pomógł: 14
Dołączył: 9.11.2005

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


Możesz jeszcze spróbować MailEnable - jest dośc prosty w konfiguracji i jest darmowy
Go to the top of the page
+Quote Post
Tmavy
post
Post #11





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 27.08.2006

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


Jeszcze jedno jak skofigurowac Free SMTP server do pracy z Outlook Expressem?

Ja w wpisuje localhost jako POP3 i SMTP a pozniej login jako localhost i haslo jako localhost ale wywala blad przy probie polaczenia, dodam ze ciagle mam wlaczone FreeSMTP server
Go to the top of the page
+Quote Post
Mirer
post
Post #12





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

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


GOOGLE

http://www.softstack.com/products.html
http://www.softstack.com/freesmtp.html
Go to the top of the page
+Quote Post
Wojtek_W
post
Post #13





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

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


Ostatecznie urzylem Hamestera i wszystko dziala poprawnie. Jeszcze raz dzieki za pomoc. Pozdrawiam!
Go to the top of the page
+Quote Post
Tmavy
post
Post #14





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 27.08.2006

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


Hamster to jest TO! Wojtek juz Ci pisze co trzeba zrobic

1. sciagasz Hamstera http://hamster.thebat.pl/ - najlepiej od razu wersje 2.10...

2.Usun stara wersje z katalogu c:\Hamster

3.Rozpakuj i skopiuj hamster_21010.zip do c:\Hamster

4.Uruchom tylko jeden plik a mianowicie Hamster wybierz polska wersje jezykowa

5.W menu Konfiguracja -> Konta lokalne aliasy i hasla -> kliknij na admin i 'Edytuj' i ustaw haslo na 'admin'.

Teraz Konfiguracja Outlook'a Express'a

1. Ustawiasz email powiedzmy wojtek@localhost.com
2. POP3 i SMTP wpisujesz: 'localhost'
3. Login i Haslo: 'admin'

Nastepnie zmieniasz w funkcji mail() w skrypcie php adresOd na: 'admin@localahost'

Wysylasz liscik poprzez PHPowy skrypt i odbierasz go juz klientem pocztowym Outlookiem (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

Pozdrawiam i udanej nauki

Tmavy.
Go to the top of the page
+Quote Post

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: 22.08.2025 - 17:53