Email Configuration |
[eluser]Masum[/eluser]
I just need controller and email configuration file... i also write Controller: class Email extends CI_Controller { function __construct() { parent::__construct(); } function index() { $this->load->library('email', $config); $this->email->from('[email protected]', 'Masum'); $this->email->to('[email protected]'); $this->email->subject('This is an email test'); $this->email->message('It is working. Great!'); if($this->email->send()) { echo 'Your email was sent, fool.'; } else { show_error($this->email->print_debugger()); } } } configure file: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $config['protocol'] = 'smtp'; $config['smtp_host'] = 'ssl://smtp.googlemail.com'; $config['smtp_port'] = 465; $config['smtp_user'] = '[email protected]'; $config['smtp_pass'] = 'mypassword'; if controller load, a mail should be received by [email protected]. But i can't understand why mail is not received my [email protected]. Please help me.... |
Messages In This Thread |
Email Configuration - by El Forum - 01-20-2012, 03:06 AM
Email Configuration - by El Forum - 01-20-2012, 03:23 AM
Email Configuration - by El Forum - 01-20-2012, 03:29 AM
Email Configuration - by El Forum - 01-20-2012, 03:41 AM
Email Configuration - by El Forum - 01-20-2012, 04:28 AM
Email Configuration - by El Forum - 01-20-2012, 04:59 AM
Email Configuration - by El Forum - 01-20-2012, 05:07 AM
|