Welcome Guest, Not a member yet? Register   Sign In
Problem email
#1

[eluser]Unknown[/eluser]
hello i'am yohan i have a problem with email and i still use ci 1.63. my code just like this :

function sendingmail()
{
if($this->input->post('add'))
{
$rules['recep'] = "trim|required|valid_email|min_length[6]|max_length[30]|callback_checkEmail|xss_clean";
$fields['recep'] = "email";

$this->validation->set_message('required', 'masukan fields %s');
$this->validation->set_message('valid_email', 'alamat email anda tidak valid');

$this->validation->set_rules($rules);
$this->validation->set_fields($fields);

if($this->validation->run() == TRUE)
{
$im = $this->input->post('recep');

$member = $this->customer;
$member->email = $im;
$member->lupaPassword();

$this->load->library('email');

$config['protocol'] = 'sendmail';
$config['mailpath'] = '/usr/sbin/sendmail -i-t';
$config['mailtype'] = 'text';
$config['charset'] = 'utf-8';
$config['charset'] = 'iso-8859-1';
$config['wordwrap'] = TRUE;

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

$this->email->from('[email protected]' , 'Example');
$this->email->to($member->email);
$this->email->subject('forget password');
$this->email->message('gooo');

$this->email->send();

echo $this->email->print_debugger();
}

$this->load->view('main_header', $this->header);
$this->load->view('main_left_menu', $this->left_menu);
$this->load->view('lppass_view');
$this->load->view('main_footer');
}
}

my print debug like this :

Your message has been successfully sent using the following protocol: sendmail
User-Agent: CodeIgniter
Date: Wed, 25 Mar 2009 16:08:17 +0800
From: "example"
Return-Path:
To: [email protected]
Subject: forget password
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Mime-Version: 1.0


Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

but went i check my email, nothing messange from my website.

thanx ^_^




Theme © iAndrew 2016 - Forum software by © MyBB