![]() |
HTTP error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: HTTP error (/showthread.php?tid=666) |
HTTP error - Thamaraiselvam - 01-03-2015 What is wrong with my code , please tell me <?php Class Email extends CI_Controller { public function __construct() { parent::__construct(); } public function index(){ $config= Array( 'protocol'=>'smpt', 'smtp_host'=>'ssl://smtp.googlemail.com', 'smtp_port'=> 465, 'smtp_user'=> '[email protected]', 'smtp_pass'=> '###', ); $this->load->library('email'); $this->email->set_newline("\r\n"); $this->email->from('[email protected]','Thamaraiselvam T'); $this->email->to('[email protected]'); $this->email->subject('This email sent from Programming'); $this->email->message('Dear Selva , This makes you happy definetly'); if($this->email->send()){ echo "Yep your mail has been sent !"; } else{ show_error($this->email->print_debugger()); } } } getting http error like following RE: HTTP error - artemweb - 01-03-2015 (01-03-2015, 12:13 AM)Thamaraiselvam Wrote: What is wrong with my code , please tell me Can you paste you .htaccess file settings here? RE: HTTP error - InsiteFX - 01-03-2015 (01-03-2015, 12:13 AM)Thamaraiselvam Wrote: What is wrong with my code , please tell me RE: HTTP error - bclinton - 01-03-2015 (01-03-2015, 05:59 AM)InsiteFX Wrote:(01-03-2015, 12:13 AM)Thamaraiselvam Wrote: What is wrong with my code , please tell me Simple Mail Transfer Protocol (SMTP) |