Tags: email

Sort by: Date / Title /

  1. 1 year ago by nox.freak
    Checks emails format, unlike others it supports have a plus (+) sign in the address. NOTE: this is easy for the user to by pass, as it is in javascript witch is not server side code.
    1. function emlChk(str) // email format checker/validator.
    2. {
    3.         var filter='^((?:(\\")|\.|\+|\!|\$|&|\*|\-|\=|\^|\`|\||\~|\#|\%|'|\/|\?|\_|\{|\}|\s|\@|\w)*)@(?:[\w-]+\.){1,255}(ac|ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|asia|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cat|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|info|int|io|iq|ir|is|it|je|jm|jo|jobs|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mo|mobi|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|travel|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|xn|ye|yt|yu|za|zm|zw)$'
    4.         if(filter.test(str))
    5.         {
    6.                 return true
    7.         } else {
    8.                 return false
    9.         }
    10. }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1284"></script>
  2. 2 years ago by sx
    1. /*method validateMail*/
    2.         public bool validateMail(string Mailadress)
    3.         {
    4.             string mailPattern = @"^[\w\._]{1,}@[\w\._]{2,}\.\w{2,4}$”;
    5.             Regex re = new Regex(mailPattern);
    6.             Match ma = re.Match(Mailadress);
    7.             if (ma.Success)
    8.                 return true;
    9.             else
    10.                 return false;
    11.         }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1090"></script>
  3. 2 years ago by henri
    Smtp-source est fourni avec le package postfix. Il permet d'envoyer un grand nombre de mails sur un serveur. C'est très utile pour voir si votre serveur tient bien lors d'une grosse montée en charge.
    1. smtp-source -s 20 -l 5120 -m 15 -c -f user1@domain.tld -t user2@domain.tld serveurdemail:25
    2.  
    3. # -s Nombre de thread
    4. # -l Taille du message
    5. # -m Nombre de message
    6. # -c affiche un compteur
    7. # -f expediteur
    8. # -t destinataire
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/712"></script>
  4. sponsorised links
  5. 2 years ago by daoro and saved by 2 others
    1. // Vérification de la forme
    2. function isEmail($email){
    3.  return preg_match("/^(\w|-|\.)+@((\w|-)+\.)+[a-z]{2,6}$/i", $email)
    4. }
    5.  
    6. // Domaine valide ?
    7. function isEmailDomaine($email){
    8.    list($compte,$domaine)=split('@',$email,2);
    9.    if(!checkdnsrr($domaine,'MX') && !checkdnsrr($domaine,'A')){
    10.      return false;
    11.    }else{
    12.      return true;
    13.    }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/152"></script>
  6. 2 years ago by henri and saved by 1 other
    1. mutt -a PIECE_JOINTE -s "SUJET" EMAIL_DESTINATAIRE < FICHER_AVEC_CORPS_DU_MSG
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/43"></script>

First / Previous / Next / Last / Page 1 of 1 (5 posteets)