PEAR почта только отправка на адрес электронной почты получателя BCC, который начинается с номера - PullRequest
0 голосов
/ 06 декабря 2011

Я отправляю сообщения BCC на массив $recipients, используя почту PEAR (smtp).$recipients - это перечислимый массив, который распечатывается просто отлично.

[0] > boss@boss.com
[1] > boss2@boss.com
[2] > 2323432@boss.com

Когда я передаю это в свою почту PEAR:

include('Mail.php');

$headers['From']    = 'From <no-reply@from.com>';
$headers['To']      = 'To <no-reply@from.com>';
$headers['Subject'] = 'subject';

$body = 'body';

$smtpinfo["host"] = "mail.server.com"; 
$smtpinfo["port"] = "25"; 
$smtpinfo["auth"] = true; 
$smtpinfo["debug"] = true; 
$smtpinfo["username"] = "user"; 
$smtpinfo["password"] = "password"; 

// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('smtp', $smtpinfo);

$mail = $mail_object->send($recipients, $headers, $body);
if (PEAR::isError($send)) { print($send->getMessage());} 
echo '... mail success';

Я получаю следующую отладочную информацию, которая делает егопохоже, это только отправка на адрес электронной почты, который начинается с цифр, так как они являются единственными, которые я вижу, и никакие другие адреса не получают почту:

DEBUG: Recv: 220 ds.privatesys.net ESMTP Exim 4.72 Tue, 06 Dec 2011 00:21:11 -0800 DEBUG: Send: EHLO localhost DEBUG: Recv: 250-ds.privatesys.net Hello ds.privatesys.net [173.231.25.2] DEBUG: Recv: 250-SIZE 20971520 DEBUG: Recv: 250-PIPELINING DEBUG: Recv: 250-AUTH PLAIN LOGIN DEBUG: Recv: 250-STARTTLS DEBUG: Recv: 250 HELP DEBUG: Send: STARTTLS DEBUG: Recv: 220 TLS go ahead DEBUG: Send: EHLO localhost DEBUG: Recv: 250-ds.privatesys.net Hello ds.privatesys.net [173.231.25.2] DEBUG: Recv: 250-SIZE 20971520 DEBUG: Recv: 250-PIPELINING DEBUG: Recv: 250-AUTH PLAIN LOGIN DEBUG: Recv: 250 HELP DEBUG: Send: AUTH LOGIN DEBUG: Recv: 334 VXNlcm5hbWU6 DEBUG: Send: cGlwaHV0 DEBUG: Recv: 334 UGFzc3dvcmQ6 DEBUG: Send: dHJhaWwrMDE= DEBUG: Recv: 235 Authentication succeeded DEBUG: Send: MAIL FROM: DEBUG: Recv: 250 OK DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO:<8888singapore@domain.com> DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO:<7177253533@domain.com> DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: RCPT TO: DEBUG: Recv: 250 Accepted DEBUG: Send: DATA DEBUG: Recv: 354 Enter message, ending with "." on a line by itself DEBUG: Send: From: from To: to Subject: subject body DEBUG: Send: . DEBUG: Recv: 250 OK id=1RXqH1-0004XG-2v DEBUG: Send: QUIT DEBUG: Recv: 221 ds.privatesys.net closing connection ... mail success

Почему это не отправляет на все другие письмаадреса в массиве $recipients?

...