sendmial
在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 是不是需要对sendmail进行配置阿?
需要配置什么啊?希望做过的朋友给予帮助。 这是我的程序:
$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(); 对,要确保你的 sendmail 能发信,也有可能你发的信被对方当成垃圾,阻止了。 谁有没有利用sendmail收发信的例子?传一份,新手弄这个真是头疼了,弄好几天了,也弄不明白,崩溃了!
页:
[1]