Jump to content

Mail Formda E Posta Problemi?


Recommended Posts

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>
 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...