public static function isEmailValid(Contact $contact, ExecutionContext $context)
 {
     // somehow you have an array of "fake email"
     $fakeEmails = array('*****@*****.**', '*****@*****.**', '*****@*****.**');
     // check if the name is actually a fake email
     if (in_array($contact->getEmail(), $fakeEmails)) {
         $propertyPath = $context->getPropertyPath() . '.email';
         $context->setPropertyPath($propertyPath);
         $context->addViolation('Tu ne te moquerais pas un peu de moi avec cet email ?', array(), null);
     }
 }
 /**
  * Send mail on success
  * 
  * @param Contact $contact
  * 
  */
 protected function onSuccess(Contact $contact)
 {
     $message = \Swift_Message::newInstance()->setContentType('text/html')->setSubject($contact->getSubject())->setFrom($contact->getEmail())->setTo('*****@*****.**')->setBody($contact->getContent());
     $this->mailer->send($message);
 }