Exemplo n.º 1
0
 /**
  * @param Message $message
  * @return $this
  */
 protected function checkFrom(Message $message)
 {
     if ($this->defaultSender) {
         if ($message->getFrom()->count() == 0) {
             $message->setFrom($this->defaultSender, $this->aliasSender);
         }
     }
     return $this;
 }
Exemplo n.º 2
0
 /**
  * @expectedException \MailMan\Exception\InvalidArgumentException
  */
 public function testAddAttachmentThatIsNotAFileShouldThrowInvalidArgumentException()
 {
     $this->mex->addAttachment('hello exception!');
 }