PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Contact Formular wird vom Provider blockiert
Beitrag
<blockquote data-quote="d4y" data-source="post: 2484852" data-attributes="member: 377643"><p>[php]<?php</p><p></p><p>$your_email = 'tech1@profi-glue.com'; // Your email address</p><p>$subject = 'Email from your support form'; // Email subject</p><p></p><p>$name = isset($_POST['name']) && $_POST['name'] ? $_POST['name'] : ''; // Visitor Name</p><p>$email = isset($_POST['email']) && $_POST['email'] ? $_POST['email'] : ''; // Visitor Email</p><p>$message = isset($_POST['message']) && $_POST['message'] ? $_POST['message'] : ''; // Visitor Message</p><p>$website = isset($_POST['website']) && $_POST['website'] ? $_POST['website'] : ''; // Visitor Message</p><p></p><p>$full_message = 'Website: '.$website. "\r\n\r\n Message:".$message;</p><p></p><p>if($name && $email && $message)</p><p>{</p><p>$headers = 'From: '.$name.' <'.$email.'>' . "\r\n" .</p><p>'Reply-To: '.$email.'' . "\r\n" .</p><p>'X-Mailer: PHP/' . phpversion();</p><p>$headers .= 'Content-type: text/plain; charset=UTF-8' . "\r\n";</p><p></p><p>//------------------------------------------------</p><p>// Send out email to site admin</p><p>//------------------------------------------------</p><p>if(@mail($your_email, $subject, $full_message, $headers))</p><p>die("success");</p><p>else</p><p>die("error");</p><p>}</p><p>else</p><p>{</p><p>die("error");</p><p>}</p><p></p><p>?>"[/php]</p><p>Brauch mal Hilfe.</p><p></p><p>Habe foldendes scribt, js und php benutzt um ein Contact Formular zu erstellen, nun bekomme ich von meinem Provider folgende E-Mail</p><p>"Dear Customer,</p><p></p><p>As provider of Shared Hosting services, we monitor the usage of all our customers to ensure that our Quality of Service is not adversely affected. Our goal is to ensure that one customer should not affect all the other customers on the same server.</p><p></p><p>As part of our routine monitoring, we have observed that some of the files hosted on this server belonging to domain name <a href="http://profi-glue.com/" target="_blank">profi-glue.com</a> hosted under your account, has some malicious files hosted.</p><p></p><p>In order to prevent blacklisting of our service with various service providers, we have blocked outbound port 80 for this domain name as a precautionary measure. Here are the details of the files that were detected to be malicious.</p><p></p><p></p><p>/home/profi7ik/public_html/test/contact.html</p><p></p><p>We strongly suggest you to scan all the above listed files for any vulnerabilities. If the files are part of some plugins of your CMS, then we suggest you to update the plugin to the latest version or contact the plugin developer directly.</p><p></p><p>Please refer our AUP for further information. If you have any queries, please feel free to contact our Support team"</p><p>HTML:</p><p>"</p><p>[html]<!-- START CONTACT FORM --></p><p> <form action="#" class="contact_form"></p><p> <p></p><p> <label for="name">Name <span>*</span></label></p><p> <input class="inputText" type="text" id="name" name="name" /></p><p> </p></p><p> <div class="clear"></div></p><p> <p></p><p> <label for="email">E-mail <span>*</span></label></p><p> <input class="inputText" type="text" id="email" name="email" /></p><p> </p></p><p> <div class="clear"></div></p><p> <p></p><p> <label for="website">Image link</label></p><p> <input class="inputText" type="text" id="website" name="website" /></p><p> </p></p><p> <div class="clear"></div></p><p> <p></p><p> <label for="message">Message <span>*</span></label></p><p> <textarea class="inputTextarea" cols="88" rows="6" id="message" name="message"></textarea></p><p> </p></p><p> <div class="clear"></div></p><p> <p class="submit"></p><p> <a href="javascript:void(0);" class="button white" onclick="$('.contact_form').submit();">Send</a></p><p> </p></p><p> </form>[/html]</p><p> <!-- END CONTACT FORM -->"</p><p>js-Script:</p><p>"</p><p>[code=JavaScript]$(document).ready(function () {</p><p></p><p> $('#name').focus(function () {</p><p> $(this).removeClass('error_class');</p><p> });</p><p></p><p> $('#email').focus(function () {</p><p> $(this).removeClass('error_class');</p><p> });</p><p></p><p> $('#message').focus(function () {</p><p> $(this).removeClass('error_class');</p><p> });</p><p></p><p> $('.contact_form').submit(function () {</p><p></p><p> hasError = false;</p><p></p><p> if ($('#name').val() == '') {</p><p> $('#name').addClass('error_class');</p><p> hasError = true;</p><p> }</p><p></p><p> var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;</p><p></p><p> var emailaddressVal = $('#email').val();</p><p> if (emailaddressVal == '') {</p><p> $('#email').addClass('error_class');</p><p> hasError = true;</p><p> }</p><p> else if (!emailReg.test(emailaddressVal)) {</p><p> $('#email').addClass('error_class');</p><p> hasError = true;</p><p> }</p><p></p><p> if ($('#email').val() == '') {</p><p> $('#email').addClass('error_class');</p><p> hasError = true;</p><p> }</p><p></p><p> if ($('#message').val() == '') {</p><p> $('#message').addClass('error_class');</p><p> hasError = true;</p><p> }</p><p></p><p> if (hasError == true) {</p><p> $('.info_box').hide();</p><p> $('.error_box').show();</p><p> }</p><p> else {</p><p> $.ajax({</p><p> type: 'POST',</p><p> url: 'support.php',</p><p> cache: false,</p><p> data: $(".contact_form").serialize(),</p><p> success: function (data) {</p><p> if (data == "error") {</p><p> $('.success_box').hide();</p><p> $('.error_box').show();</p><p> }</p><p> else {</p><p> $('#name').val('');</p><p> $('#email').val('');</p><p> $('#message').val('');</p><p> $('#website').val('');</p><p> $('.error_box').hide();</p><p> $('.success_box').show();</p><p> }</p><p> }</p><p> });</p><p> }</p><p></p><p> return false;</p><p> });</p><p>});[/code]</p><p>"</p><p></p><p>PHP</p><p>"</p><p>[php]<?php</p><p></p><p> $your_email = 'tech1@profi-glue.com'; // Your email address</p><p> $subject = 'Email from your support form'; // Email subject</p><p></p><p> $name = isset($_POST['name']) && $_POST['name'] ? $_POST['name'] : ''; // Visitor Name</p><p> $email = isset($_POST['email']) && $_POST['email'] ? $_POST['email'] : ''; // Visitor Email</p><p> $message = isset($_POST['message']) && $_POST['message'] ? $_POST['message'] : ''; // Visitor Message</p><p> $website = isset($_POST['website']) && $_POST['website'] ? $_POST['website'] : ''; // Visitor Message</p><p></p><p> $full_message = 'Website: '.$website. "\r\n\r\n Message:".$message;</p><p></p><p> if($name && $email && $message)</p><p> {</p><p> $headers = 'From: '.$name.' <'.$email.'>' . "\r\n" .</p><p> 'Reply-To: '.$email.'' . "\r\n" .</p><p> 'X-Mailer: PHP/' . phpversion();</p><p> $headers .= 'Content-type: text/plain; charset=UTF-8' . "\r\n";</p><p> </p><p> //------------------------------------------------</p><p> // Send out email to site admin</p><p> //------------------------------------------------</p><p> if(@mail($your_email, $subject, $full_message, $headers))</p><p> die("success");</p><p> else</p><p> die("error");</p><p> }</p><p> else</p><p> {</p><p> die("error");</p><p> }</p><p></p><p>?>[/php]</p><p>"</p><p></p><p>Irgend eine Idee was ich Falsch mache??</p></blockquote><p></p>
[QUOTE="d4y, post: 2484852, member: 377643"] [php]<?php $your_email = 'tech1@profi-glue.com'; // Your email address $subject = 'Email from your support form'; // Email subject $name = isset($_POST['name']) && $_POST['name'] ? $_POST['name'] : ''; // Visitor Name $email = isset($_POST['email']) && $_POST['email'] ? $_POST['email'] : ''; // Visitor Email $message = isset($_POST['message']) && $_POST['message'] ? $_POST['message'] : ''; // Visitor Message $website = isset($_POST['website']) && $_POST['website'] ? $_POST['website'] : ''; // Visitor Message $full_message = 'Website: '.$website. "\r\n\r\n Message:".$message; if($name && $email && $message) { $headers = 'From: '.$name.' <'.$email.'>' . "\r\n" . 'Reply-To: '.$email.'' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); $headers .= 'Content-type: text/plain; charset=UTF-8' . "\r\n"; //------------------------------------------------ // Send out email to site admin //------------------------------------------------ if(@mail($your_email, $subject, $full_message, $headers)) die("success"); else die("error"); } else { die("error"); } ?>"[/php] Brauch mal Hilfe. Habe foldendes scribt, js und php benutzt um ein Contact Formular zu erstellen, nun bekomme ich von meinem Provider folgende E-Mail "Dear Customer, As provider of Shared Hosting services, we monitor the usage of all our customers to ensure that our Quality of Service is not adversely affected. Our goal is to ensure that one customer should not affect all the other customers on the same server. As part of our routine monitoring, we have observed that some of the files hosted on this server belonging to domain name [URL='http://profi-glue.com/']profi-glue.com[/URL] hosted under your account, has some malicious files hosted. In order to prevent blacklisting of our service with various service providers, we have blocked outbound port 80 for this domain name as a precautionary measure. Here are the details of the files that were detected to be malicious. /home/profi7ik/public_html/test/contact.html We strongly suggest you to scan all the above listed files for any vulnerabilities. If the files are part of some plugins of your CMS, then we suggest you to update the plugin to the latest version or contact the plugin developer directly. Please refer our AUP for further information. If you have any queries, please feel free to contact our Support team" HTML: " [html]<!-- START CONTACT FORM --> <form action="#" class="contact_form"> <p> <label for="name">Name <span>*</span></label> <input class="inputText" type="text" id="name" name="name" /> </p> <div class="clear"></div> <p> <label for="email">E-mail <span>*</span></label> <input class="inputText" type="text" id="email" name="email" /> </p> <div class="clear"></div> <p> <label for="website">Image link</label> <input class="inputText" type="text" id="website" name="website" /> </p> <div class="clear"></div> <p> <label for="message">Message <span>*</span></label> <textarea class="inputTextarea" cols="88" rows="6" id="message" name="message"></textarea> </p> <div class="clear"></div> <p class="submit"> <a href="javascript:void(0);" class="button white" onclick="$('.contact_form').submit();">Send</a> </p> </form>[/html] <!-- END CONTACT FORM -->" js-Script: " [code=JavaScript]$(document).ready(function () { $('#name').focus(function () { $(this).removeClass('error_class'); }); $('#email').focus(function () { $(this).removeClass('error_class'); }); $('#message').focus(function () { $(this).removeClass('error_class'); }); $('.contact_form').submit(function () { hasError = false; if ($('#name').val() == '') { $('#name').addClass('error_class'); hasError = true; } var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; var emailaddressVal = $('#email').val(); if (emailaddressVal == '') { $('#email').addClass('error_class'); hasError = true; } else if (!emailReg.test(emailaddressVal)) { $('#email').addClass('error_class'); hasError = true; } if ($('#email').val() == '') { $('#email').addClass('error_class'); hasError = true; } if ($('#message').val() == '') { $('#message').addClass('error_class'); hasError = true; } if (hasError == true) { $('.info_box').hide(); $('.error_box').show(); } else { $.ajax({ type: 'POST', url: 'support.php', cache: false, data: $(".contact_form").serialize(), success: function (data) { if (data == "error") { $('.success_box').hide(); $('.error_box').show(); } else { $('#name').val(''); $('#email').val(''); $('#message').val(''); $('#website').val(''); $('.error_box').hide(); $('.success_box').show(); } } }); } return false; }); });[/code] " PHP " [php]<?php $your_email = 'tech1@profi-glue.com'; // Your email address $subject = 'Email from your support form'; // Email subject $name = isset($_POST['name']) && $_POST['name'] ? $_POST['name'] : ''; // Visitor Name $email = isset($_POST['email']) && $_POST['email'] ? $_POST['email'] : ''; // Visitor Email $message = isset($_POST['message']) && $_POST['message'] ? $_POST['message'] : ''; // Visitor Message $website = isset($_POST['website']) && $_POST['website'] ? $_POST['website'] : ''; // Visitor Message $full_message = 'Website: '.$website. "\r\n\r\n Message:".$message; if($name && $email && $message) { $headers = 'From: '.$name.' <'.$email.'>' . "\r\n" . 'Reply-To: '.$email.'' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); $headers .= 'Content-type: text/plain; charset=UTF-8' . "\r\n"; //------------------------------------------------ // Send out email to site admin //------------------------------------------------ if(@mail($your_email, $subject, $full_message, $headers)) die("success"); else die("error"); } else { die("error"); } ?>[/php] " Irgend eine Idee was ich Falsch mache?? [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ★ = 12, ◇ = 4 und die Hälfte von ★ zu ◇ addiert wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Contact Formular wird vom Provider blockiert
Oben