用户
 找回密码
 入住 CI 中国社区
搜索
查看: 5785|回复: 4
收起左侧

sendmial

[复制链接]
发表于 2008-9-10 09:21:13 | 显示全部楼层 |阅读模式
在frebsd下利用sendmial发邮件,提示我已经发送成功了,但是我没有收到,是什么原因?

Your message has been successfully sent using the following protocol: sendmail

User-Agent: Code Igniter
Date: Wed, 10 Sep 2008 09:14:27 +0900
From: "xxx"
Return-Path:
To: xxxxxxxxxxx@xxxsoft.com
Subject: Email Test
Reply-To: "xxxxxxxxxxxxx@sina.com"
X-Sender: xxxxxxxxxxxxx@sina.com
X-Mailer: Code Igniter
X-Priority: 3 (Normal)
Message-ID: <48c71163210ad@sina.com>
Mime-Version: 1.0

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

Testing the email class
 楼主| 发表于 2008-9-10 09:55:56 | 显示全部楼层
是不是需要对sendmail进行配置阿?
需要配置什么啊?希望做过的朋友给予帮助。
 楼主| 发表于 2008-9-10 11:00:56 | 显示全部楼层
这是我的程序:
                $from = $_POST['from'];
                $to = $_POST['to'];
                $title = $_POST['title'];
                $content = $_POST['content'];

                $this->load->library('email');
               
                $config['protocol'] = 'sendmail';
                $config['mailpath'] = '/usr/src/contrib/sendmail';
                $config['charset'] = 'utf-8';
                $config['wordwrap'] = TRUE;

                $this->email->initialize($config);

                $this->email->from($from,'test');
                $this->email->to($to);

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

                $this->email->send();

                echo $this->email->print_debugger();
发表于 2008-9-10 12:01:34 | 显示全部楼层
对,要确保你的 sendmail 能发信,也有可能你发的信被对方当成垃圾,阻止了。
 楼主| 发表于 2008-9-11 10:01:59 | 显示全部楼层
谁有没有利用sendmail收发信的例子?传一份,新手弄这个真是头疼了,弄好几天了,也弄不明白,崩溃了!

本版积分规则