--TEST-- Bug #80706 (Headers after Bcc headers may be ignored) --SKIPIF-- --INI-- SMTP=localhost smtp_port=25 sendmail_from=from@example.com --FILE-- $to, 'bcc' => $bcc] as $recipient => $mailAddress) { $mailBox = MailBox::login($mailAddress); $mail = $mailBox->getMailsBySubject($subject); $mailBox->logout(); if ($mail->isAsExpected($from, $to, $subject, $message)) { echo "Found the email. {$recipient} received.\n"; } if ($mail->getHeader('X-Mailer') === $xMailer) { echo "The specified x-Mailer exists.\n\n"; } } ?> --CLEAN-- deleteMailsBySubject($subject); $mailBox->logout(); } ?> --EXPECT-- Email sent. Found the email. to received. The specified x-Mailer exists. Found the email. bcc received. The specified x-Mailer exists.