• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTTP error

#1
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'=> 'thamaraiselvam@snowmanbranding.com',
'smtp_pass'=> '###',
);

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

$this->email->set_newline("\r\n");

$this->email->from('thamaraiselvam@snowmanbranding.com','Thamaraiselvam T');
$this->email->to('thamaraiselvam@snowmanbranding.com');
$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


Attached Files Thumbnail(s)
   
Thanks and Regards,
Thamaraiselvam T
Reply

#2
(01-03-2015, 12:13 AM)Thamaraiselvam Wrote: 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'=> 'thamaraiselvam@snowmanbranding.com',
'smtp_pass'=> '###',
);

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

$this->email->set_newline("\r\n");

$this->email->from('thamaraiselvam@snowmanbranding.com','Thamaraiselvam T');
$this->email->to('thamaraiselvam@snowmanbranding.com');
$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

Can you paste you .htaccess file settings here?
Reply

#3
(01-03-2015, 12:13 AM)Thamaraiselvam Wrote: 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'=> 'thamaraiselvam@snowmanbranding.com',
'smtp_pass'=> '###',
);

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

$this->email->set_newline("\r\n");

$this->email->from('thamaraiselvam@snowmanbranding.com','Thamaraiselvam T');
$this->email->to('thamaraiselvam@snowmanbranding.com');
$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



PHP Code:
'protocol'=>'smpt',

should be

'protocol'=>'smtp'
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#4
(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

<?php


public function index(){
$config= Array(
'protocol'=>'smpt',
'smtp_host'=>'ssl://smtp.googlemail.com',
'smtp_port'=> 465,
'smtp_user'=> 'thamaraiselvam@snowmanbranding.com',
'smtp_pass'=> '###',
);


getting http error like following




PHP Code:
'protocol'=>'smpt',

should be

'protocol'=>'smtp'

Simple Mail Transfer Protocol (SMTP)
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.