SoundMax Posted November 18, 2014 Share Posted November 18, 2014 merhaba arkadaşlar elimdeki bir mail scriptinde e postanızı girin bölümü var bu bölüme geçerli bir mail girerseniz sorunsuz mail geliyor. fakat asdasdasd şeklinde birşey yazarsanız @ işareti olmadıgı için uyarı veriyor geçerli mail girin diye. ama [email protected] yazarsamda bu sefer şöyle bir hata geliyor Persits.MailSender.4 error '800a0006' 501 Your domain does not seem to be valid. Could not find MX record for your domain. /formuyolla.asp, line 118 bunu nasıl yapsamda gene uyarı verse geçerli bir adres girin diye ? kodlar aşağıda gerekirse formuyolla.asp yide verebilirim size <script language="JavaScript"> <!-- Eski Tarayıcılarda Kullanmayın //Formda Zorunlu Doldurulacak Yerler function CheckForm () { //Hata Basligi var hataMsj = ""; //Name if (document.form.name.value == ""){ hataMsj += "\n\tName? \t\t"; } //IL if (document.form.il.value == ""){ hataMsj += "\n\tVorname? \t\t"; } //IL if (document.form.gun1.value == ""){ hataMsj += "\n\tDatum? \t\t"; } //Ulke secimi if (document.form.ulke.value == ""){ hataMsj += "\n\tPersonenanzahl? \t\t"; } //Saat if (document.form.saat.value == "") { hataMsj += "\n\tUhrzeit? \t\t"; } //Adres //if (document.form.adres.value == ""){ //hataMsj += "\n\tAnfrage? \t\t"; //} //Mail adresi if (document.form.email.value == ""){ hataMsj += "\n\tE-Mail? \t\t"; } //Tel if (document.form.tel.value == ""){ hataMsj += "\n\tTelefon? \t\t"; } //Tel if (document.form.tisch.value == ""){ hataMsj += "\n\tWunschtisch? \t\t"; } //Özel ricalar //if (document.form.text2.value == "") { //hataMsj += "\n\tÖzel Ricalar \t\t- Lütfen mesajınızı yazınız"; //} //E-Mail Adresi ve Doğruluğu if ((document.form.email.value == "") || (document.form.email.value.length > 0 && (document.form.email.value.indexOf("@",0) == - 1 || document.form.email.value.indexOf(".",0) == - 1))) { hataMsj += "\n\tE-Mail \t- Bitte eine gültige Email Adresse eingeben."; } //Eksik Olursa Çikacak Hata Mesaji if (hataMsj != ""){ msj = "Bitte alle Pflichtfeld ausfüllen!\n"; //msj += "Formda bazı eksikler bulundu.\n"; //msj += "_________________________________\n\n"; //msj += "Eksik Bilgiler: -\n"; hataMsj += alert(msj + hataMsj + "\n\n"); return false; } return true; } // --> </script> Quote Link to comment Share on other sites More sharing options...
blackman12 Posted November 19, 2014 Share Posted November 19, 2014 if ((document.form.email.value == "") || (document.form.email.value.length > 0 && (document.form.email.value.indexOf("@",0) == - 1 || document.form.email.value.indexOf(".",0) == - 1))) { hataMsj += "\n\tE-Mail \t- Bitte eine gültige Email Adresse eingeben."; } bu kısma yeni filtreler ekleyerek yapabilirsin. örneğin sadece gmail hotmail msn ne biliyim cartcurttan mail atmasını sağlayabilir ya da mail uzunluğunu minimum 8 karakter olması koşulunu atayabilirsin. if ((document.form.email.value == "") || (document.form.email.value.length < 8 || (document.form.email.value.length > 7 && (document.form.email.value.indexOf("@",0) == - 1 || document.form.email.value.indexOf(".",0) == - 1))) { hataMsj += "\n\tE-Mail \t- Bitte eine gültige Email Adresse eingeben."; } gibi. Quote Link to comment Share on other sites More sharing options...
SoundMax Posted November 20, 2014 Author Share Posted November 20, 2014 hocam teşekkürler ince ayrıntı için fakat bana sadece uyarı verse yeterli özel domain kullanan müşterilerde olabileceği için bunu aktif yapamayız. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.