![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 16 Pomógł: 0 Dołączył: 12.07.2014 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Prosze o opinię czemu ten kod nie wysyła wiadomości email nawet do spam :/ <?php //jeżeli zmienna "email" została wypełniona, wysyłamy wiadomość if (isset($_REQUEST['email'])) { //Informację o emailu, na który będzie wysyłana wiadomość $admin_email = "praca@fintjob.eu"; $email = $_REQUEST['email']; $subject = $_REQUEST['subject']; $comment = $_REQUEST['comment']; $header = "From: $email \nContent-Type:".' text/html;charset="UTF-8"'."\nContent-Transfer-Encoding: 8bit"; $header .= "MIME-Version: 1.0rn"; //wysyłamy email mail($admin_email, "$subject", $comment, $header); //komunikat potwierdzający echo "<div style ='font:21px/41px Arial,tahoma,sans-serif;color:#ffffff'>Wiadomość została wysłana!</div>"; } //jeżeli zmienna z wartością "email" nie została wypełniona pokazujemy ponownie formularz else { ?> <?php } ?> <div class="col-xl-6 mb-5"> <div class="tm-contact-form-wrap"> <form action="" method="POST" class="tm-contact-form"> <div class="form-group"> <input type="text" id="subject" name="subject" class="form-control rounded-0 border-top-0 border-right-0 border-left-0" placeholder="Temat" required="" /> </div> <div class="form-group"> <input type="email" id="email" name="email" class="form-control rounded-0 border-top-0 border-right-0 border-left-0" placeholder="Email" required="" /> </div> <div class="form-group"> <textarea rows="4" id="comment" name="comment" class="form-control rounded-0 border-top-0 border-right-0 border-left-0" placeholder="Wiadomość ..." required=""></textarea> </div> <div class="form-group mb-0"> <button type="submit" class="btn rounded-0 d-block ml-auto tm-btn-primary"> Wyślij </button> </div> </form> |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 20:23 |