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 de2875a commit 2246d47Copy full SHA for 2246d47
src/Mail/SmtpMailer.php
@@ -74,7 +74,9 @@ public function __construct(array $options = [])
74
*/
75
public function send(Message $mail): void
76
{
77
- $mail = clone $mail;
+ $tmp = clone $mail;
78
+ $tmp->setHeader('Bcc', null);
79
+ $data = $tmp->generateMessage();
80
81
try {
82
if (!$this->connection) {
@@ -95,8 +97,6 @@ public function send(Message $mail): void
95
97
$this->write("RCPT TO:<$email>", [250, 251]);
96
98
}
99
- $mail->setHeader('Bcc', null);
- $data = $mail->generateMessage();
100
$this->write('DATA', 354);
101
$data = preg_replace('#^\.#m', '..', $data);
102
$this->write($data);
0 commit comments