Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Sendmail i Flash
gary1991
post 19.03.2010, 20:40:15
Post #1





Grupa: Zarejestrowani
Postów: 20
Pomógł: 0
Dołączył: 12.03.2010

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


Mam problem wiadomości mi nie dochodzą kod:

  1. <?php
  2. $contact_name = $_POST['name'];
  3. $contact_email = $_POST['email'];
  4. $contact_subject = $_POST['sumbit'];
  5. $contact_message = $_POST['message'];
  6.  
  7. if(!empty($contact_name))
  8. {
  9. $sender = $contact_email;
  10. $receiver = "wojtek.fisztel@gmail.com";
  11. $client_ip = $_SERVER['REMOTE_ADDR'];
  12. $email_body = "Name: $contact_name \nEmail: $sender \n\nSubject: $contact_subject \n\nMessage: \n\n$contact_message \n\nIP: $client_ip \n\nFlash Contact Form by Wojciech Fisztel";
  13. $extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();
  14.  
  15. if( mail( $receiver, "Flash Contact Form - $contact_subject", $email_body, $extra ) )
  16. {
  17. echo "success=yes";
  18. }
  19. else
  20. {
  21. echo "success=no";
  22. }
  23. }
  24. ?>
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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 13:06