Dypso Backoffice
Dypso Backoffice

Développement Web


Download Products


DypsWebCapture : Capture Web page as thumbnail image

Documentation
Example
Download
Buy

New release with embed IE and Firefox rendering engine !



DypsFTP : Manage a FTP site from your script

Documentation
Buy


DypsImg2SWF : Protect and save your image as SWF/Flash format!

Documentation
Example
Download
Buy


DypsXLS for ASP: Générateur de fichier Excel

New features!
Documentation
Exemple d'utilisation
Download
Buy


DypsMetaGrabber : get Meta Tag from any web page!

Documentation
Example
Download
Buy


DypsAntiSpam for ASP

Features
Exemple d'utilisation
Download
Buy

DypsoPRank for ASP

Features
Exemple d'utilisation
Download
Buy

Pop3 Checker for ASP

Features
Exemple d'utilisation
Download
Buy

SVG Pie chart Maker for ASP

Features
Exemple d'utilisation
Download

DypsRTF for ASP

Features
Exemple d'utilisation
Download
Buy

What's New ?


Mise en ligne du premier outil gratuit pour générer des fichiers Excel depuis ASP : DypsXLS !
[Lire la suite]

Et un forum Le site se dote d'un forum pour vous permettre de partager toujours plus.
[Rejoigner nous]

Annuaire de scripts ! Un annuaire de scripts et de liens utiles vers des ressources pour le développement
[Lire la suite]

Création d'un outil gratuit pour retrouver ses mails : Pop3 Checker for free !
[Lire la suite]

Création d'un outil gratuit pour générer des graphiques vectoriels à la volée: Free SVG Pie chart Maker !
[Lire la suite]
Imprimer la page

ASP Function to verify if an address mail is valid

Techniques

This section makes it possible to gather a whole of techniques or scripts which have the originality to manage to solve a difficulty with the least effort or which are particularly effective...The grayed entries relate to the future headings which will supplement soon this toolbox.


Techniques / Verify if an address mail is valid
  •  Script: verify if an address mail is valid :

Before the sending of a mail to avoid a useless excess load on IIS, it is possible to use a simple function to verify that the email address is well formed. In a more pushed process we could be also brought to interrogate the smtp corresponding server to know if the address exists or not.


        
<%
function IsValid(email)
  IsValid = true
  dim names, name, i, c
  names = Split(email, "@")
  if UBound(names) <> 1 then
   IsValid = false
   exit function
  end if
  for each name in names
   if Len(name) <=  0 then
    IsValid = false
    exit function
   end if
   for i = 1 to Len(name)
    c = Lcase(Mid(name, i, 1))
letters="abcdefghijklmnopqrstuvwxyz_-."
   if InStr(letters, c) <= 0 and not IsNumeric(c) then
     IsValid = false
     exit function
    end if
   next
   if Left(name, 1) = "." or Right(name, 1) = "." then
    IsValid = false
    exit function
   end if
  next
  if InStr(names(1), ".") <= 0 then
   IsValid = false 
   exit function
  end if
  i = Len(names(1)) - InStrRev(names(1), ".")
  if i <> 2 and i <> 3 then
   IsValid = false
   exit function
  end if
  if InStr(email, "..") > 0 then
   IsValid = false
  end if
 end function
%>