Skip to content

Commit

Permalink
Test for double quotes in from name
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Apr 26, 2019
1 parent 6b36cba commit c614717
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/PHPMailerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,18 @@ public function testAddressing()
$this->Mail->clearReplyTos();
}

/**
* Test addressing.
*/
public function testAddressing2()
{
$this->buildBody();
$this->Mail->setFrom('[email protected]', '"Bob\'s Burgers" (Bob\'s "Burgers")', true);
$this->Mail->isSMTP();
$this->Mail->Subject .= ': quotes in from name';
$this->assertTrue($this->Mail->send(), 'send failed');
}

/**
* Test RFC822 address splitting.
*/
Expand Down

0 comments on commit c614717

Please sign in to comment.