We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf2425c commit cd1c070Copy full SHA for cd1c070
src/Mail/SmtpMailer.php
@@ -73,7 +73,9 @@ public function __construct(array $options = [])
73
*/
74
public function send(Message $mail)
75
{
76
- $mail = clone $mail;
+ $tmp = clone $mail;
77
+ $tmp->setHeader('Bcc', null);
78
+ $data = $tmp->generateMessage();
79
80
try {
81
if (!$this->connection) {
@@ -94,8 +96,6 @@ public function send(Message $mail)
94
96
$this->write("RCPT TO:<$email>", [250, 251]);
95
97
}
98
- $mail->setHeader('Bcc', null);
- $data = $mail->generateMessage();
99
$this->write('DATA', 354);
100
$data = preg_replace('#^\.#m', '..', $data);
101
$this->write($data);
0 commit comments