Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] problem z funkcja mail(), chyba cos w pliku php.ini
bobens_83
post
Post #1





Grupa: Zarejestrowani
Postów: 112
Pomógł: 0
Dołączył: 7.11.2005
Skąd: z Czelsy

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


Witam. Mam problem z wyslaniem maila

  1. <?php
  2. $to = "some@mail.com";
  3. $subject = "subject";
  4. $body = "message body";
  5. if (mail($to, $subject, $body)) {
  6. echo("<p>Message successfully sent!</p>");
  7. } else {
  8. echo("<p>Message delivery failed...</p>");
  9. }
  10. ?>


otrzymuje komunikat Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in
Jak ustawic parametr 'sendmail_from'? W pliku jedyna wzmianka o sendmail_from to

; For Win32 only.
sendmail_from = you@yourdomain


Czy moze radzicie inna metode automatycznego wysylania maili ? Pozdrowionka.

Ten post edytował JaRoPHP 13.12.2007, 20:13:02
Powód edycji: Dodanie tagu.
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 19.08.2025 - 20:11