Exemplo n.º 1
0
 public function testMTEmailAddBCC()
 {
     $email = new MailTrapEmailAdapter();
     $email->addBcc('a@b.c', 'abc');
     $reflection = new \ReflectionClass($email);
     $mailProp = $reflection->getProperty('tos');
     $mailProp->setAccessible(true);
     $this->assertEquals([['a@b.c', 'abc']], $mailProp->getValue($email));
 }
Exemplo n.º 2
0
 protected function createMessage()
 {
     $message = new MailTrapEmailAdapter();
     // If a global from address has been specified we will set it on every message
     // instances so the developer does not have to repeat themselves every time
     // they create a new message. We will just go ahead and push the address.
     if (isset($this->from['address'])) {
         $message->from($this->from['address'], $this->from['name']);
     }
     return $message;
 }