我有一个脚本,它引起了一些问题。但在此之前,我想说明关于我的服务器的文件结构。
如果我直接在www
文件夹下上传我的脚本,那么没有问题。ecommerce
但是,如果我在我的文件夹下创建一个名为的www
文件夹,然后放置脚本,那么它就会引发问题。
假设我创建了一个文件夹www/ecommerce
,邮件有问题。
这是我的脚本
$this->load->library('email');
$config['charset'] = 'utf-8';
$config['wordwrap'] = TRUE;
$config['mailtype'] = 'html';
$config['protocol'] = 'sendmail';
$this->email->initialize($config);
$this->email->from('info@divinotech.com', 'Divinotech Support');
$this->email->to($email);
$this->email->subject('Welcome To SaiBoutique');
$msg="<div align='center' style='background-color: #cfcfcf; width: 400ox; height: 300px;'><strong>You Have Been Successfuly registered to SaiBoutique.com. Please Visit Our Site To Have Fabulous Offer</strong>
<br/>
<br/>
<a href='".base_url()."user/activate_account/".$activation_key."'><strong>Click Here To Activate Your Account</strong></a></div>";
$this->email->message($msg);
if($this->email->send())
echo "Successfully Registered' Please Log-In.Mail Send To Your Email-ID";
我在控制器中写这个。
我需要保留它,www/ecommerce
以便我的项目链接如下所示:
http://divinotech.com/ecommerce
这是错误代码
Exit status code: 127
Unable to open a socket to Sendmail. Please check settings.
Unable to send email using PHP Sendmail. Your server might not be configured to send mail using this method.
User-Agent: CodeIgniter