Tags: email

Sort by: Date / Title /

  1. 1 month 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.         }
  2. 7 months 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
  3. 10 months 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.    }
  4. 11 months ago by henri and saved by 1 other
    1. mutt -a PIECE_JOINTE -s "SUJET" EMAIL_DESTINATAIRE < FICHER_AVEC_CORPS_DU_MSG

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