我正在使用phpmailer,并希望输出它发送给它的密件抄送电子邮件地址以用于记录目的。 ($ MAIL-> AddBCC())
我可以使用简单的print_r($ mail)输出$ mail对象...我只想输出:
print_r($mail->all_recipients:private);
但这不起作用。 我试过了:
print_r($mail->{'all_recipients:private'});
但这也行不通。
print_r($mail);
所示:
[AltBody] =>
[WordWrap] => 0
[Mailer] => smtp
[Sendmail] => /usr/sbin/sendmail
[PluginDir] =>
[ConfirmReadingTo] =>
[Hostname] =>
[MessageID] =>
[Host] => smtp.gmail.com
[Port] => 587
...
[all_recipients:private] => Array
(
[exampl1@test.com] => 1
[exampl2@test.com] => 1
[exampl3@test.com] => 1
)
...