Add improvements

This commit is contained in:
Philipp Holzer 2020-09-19 22:49:44 +02:00
parent ac1d2cf38f
commit c41614fef1
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD

View file

@ -184,8 +184,7 @@ abstract class MailBuilder
*/
public function setHeader(string $name, string $value)
{
$this->headers[$name] = [];
$this->headers[$name][] = $value;
$this->headers[$name] = [$value];
return $this;
}