Example #1
1
 /**
  * Test address escaping
  */
 function test_AddressEscaping()
 {
     $this->Mail->Subject .= ': Address escaping';
     $this->Mail->ClearAddresses();
     $this->Mail->AddAddress('*****@*****.**', 'Tim "The Book" O\'Reilly');
     $this->Mail->Body = 'Test correct escaping of quotes in addresses.';
     $this->BuildBody();
     $this->Mail->PreSend();
     $b = $this->Mail->GetSentMIMEMessage();
     $this->assertTrue(strpos($b, 'To: "Tim \\"The Book\\" O\'Reilly" <*****@*****.**>') !== false);
 }