0

Codeigniter "bcc" は動作しませんが、"to" を使用した同じコードは問題なく動作します! なぜこれが起こるのか、それを修正する方法はありますか?

これが私のコードです:

        $email = "myEmail@myWebsite.com";

        $subject = "my subject";
        $message = "my message";

        $this->email->set_mailtype("html"); // In my actual code this is needed

        $this->email->from('myWebsiteEmail@myWebsite.com', 'Info');
        // $this->email->to($email); // It works with this code
        $this->email->bcc($email); // It doesn't work with this code

        $this->email->subject($subject);
        $this->email->message($message);

        $this->email->send();

任意の提案をいただければ幸いです!

4

3 に答える 3

0

toできるようにする必要がありますbcc

と に電子メールを追加してみてください。toうまくbccいくはずです。

于 2014-05-27T12:12:04.863 に答える
-1

あなたがする必要があるの$this->email->to()は、設定$config['bcc_batch_mode'] = TRUE;してから、のような電子メールを追加することだけです$CI->email->bcc( $bccEmailArray );。bcc メソッドは cc メソッドのようには機能しません。

于 2021-05-04T08:06:45.410 に答える