Exemplo n.º 1
0
 public function testClearRecipients()
 {
     $this->setExpectedException('fValidationException');
     $token = $this->generateSubjectToken();
     $email = new fEmail();
     $email->setFromEmail('*****@*****.**');
     $email->addRecipient(EMAIL_ADDRESS, 'Test User');
     $email->addRecipient(EMAIL_ADDRESS, 'Test User 2');
     $email->setSubject($token . ': Testing Simple Email');
     $email->setBody('This is a simple test');
     $email->clearRecipients();
     $email->send();
 }