Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP] Funkcja mail
b4rt3kk
post
Post #1





Grupa: Zarejestrowani
Postów: 1 933
Pomógł: 460
Dołączył: 2.04.2010
Skąd: Lublin

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


Witam,
problem dotyczy funkcji mail.

  1. mail ("mail@mail.com", $temat, $tresc, $header); //wysyła wiadomość bez problemów
  2.  
  3. $adresat="mail@mail.com";
  4. mail ($adresat, $temat, $tresc, $header); //również nie ma problemów, mail idzie
  5.  
  6. $adresat=$_POST['adresat'];
  7. mail ($adresat, $temat, $tresc, $header); //czasem wysyła, a czasem nie wysyła, nie mam pojęcia o co chodzi, błąd opisze poniżej
  8.  
  9. $adresat=trim((string)$_POST['adresat']); // myślałem, że tu leży problem, a niemal jestem tego pewien, ale co jest nie tak z tym stringiem? Kiedy wpisze e-mail na stałe to nie ma problemu z wysłaniem. Dlatego dla pewności zamieniłem zmienną na stringa i usunąłem białe znaki, no i czasem to działa a czasem nie.
  10. mail ($adresat, $temat, $tresc, $header);
  11.  


Warning: mail(): SMTP server response: 550 Invalid recipient: bw2424@gmail.com in c:\usr\krasnal\www\Funkcje\fun_rejestracja.php on line 100

Czy naprawdę nikt nie wie o co to może chodzić? Liczę na każdą sugestię.

Ten post edytował b4rt3kk 15.11.2010, 18:30:27
Go to the top of the page
+Quote Post
czachor
post
Post #2





Grupa: Zarejestrowani
Postów: 897
Pomógł: 40
Dołączył: 16.12.2003
Skąd: Warszawa

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


Poczytaj: http://www.google.com/support/forum/p/Goog...8c5f8&hl=en może Ci pomoże.
Go to the top of the page
+Quote Post
thek
post
Post #3





Grupa: Moderatorzy
Postów: 4 362
Pomógł: 714
Dołączył: 12.02.2009
Skąd: Jak się położę tak leżę :D




Pierwszy wynik dla frazy "smtp error 550":
Cytat
SMTP Error - 550

Requested Not Action: mailbox unavailable or is not local.

This message indicates that the recipient specified in the RCPT command is not locally hosted on the server and relaying options prevent the message being forwarded to the recipient. To resolve this you should ensure that an address map has been associated with the desired mailbox. If you receive this message then you should use the MMC to ensure that this address has been assigned to a mailbox. This can be done in the MMC by viewing the properties of the Mailbox.
Tak więc jak widzisz problem nie musi być po stronie nie czyszczonego maila, ale także serwera poczty.
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: 21.12.2025 - 22:34