qycard 发表于 2010-11-25 11:36:53

我用email类发邮件全部都进垃圾箱里面

大家遇到过这个问题吗?
              $your_name = $this->input->post('your_name');
              $your_email = $this->input->post('your_email');
              $to_email = $this->input->post('to_email');
              $subject = $this->input->post('subject');
              $message = $this->input->post('message');
             
                        $this->load->library('email');
                       
                        $this->email->from($your_email,$your_name);
                        $this->email->to($to_email);
                        $this->email->subject($subject);
                        $this->email->message($message);
                       
                        if($this->email->send())
                        {
                                echo 'Sent successfully,<a href="/ci/index.php/email">return</a>.';
                        }
                       
                        else
                        {
                                show_error($this->email->print_debugger());
                        }

Hex 发表于 2010-11-25 12:31:27

你这个和 CI 无关,和你的 SMTP、邮件内容、对方收件服务器都有关。
现在垃圾邮件泛滥,各家邮局系统判断都很严格,进垃圾邮件很正常。
页: [1]
查看完整版本: 我用email类发邮件全部都进垃圾箱里面