0

我目前正在使用 WPMU 的会员 2 会员软件。成功注册后,所有新成员都会收到一条自动消息。该消息将发送给所有董事会成员。问题是它被复制给他们并且他们被列为收件人。我想更改它,以便它们被盲目抄送,并且新用户是唯一列出的收件人。这是我使用的代码:

<?php
add_filter('ms_model_communication_send_message_recipients', function($recipients){
$otehr_emails = array('treasurer@bwa.org', 'webmaster@bwa.org', 'president@bwa.org', 'membership@bwa.org', 'writers-bwa-owner@yahoogroups.com');
$recipients = array_merge($recipients, $otehr_emails);
return $recipients;
});

此代码将这些电子邮件添加为抄送收件人。我更希望他们成为盲抄本收件人。WPMU 支持板将此作为解决方案:

<?php
function mp_add_bcc_email( $headers, $this, $subscription ) {

    $headers[] .= 'Bcc: yourmail@exmaple.com';

    return $headers;
}

add_filter( 'ms_model_communication_send_message_headers', 'mp_add_bcc_email', 10, 3 );

有没有办法编辑上述代码以允许多个密件抄送收件人?如果没有,是否有另一个 php 脚本能够在 wmpu 会员 2 软件中的自动电子邮件回复中添加密件抄送?

谢谢你!

4

0 回答 0