How can I send email from localhost using my gmail account. |
[eluser]Arun Joshi[/eluser]
After 20 minutes CI forum searching I got the solution. :coolsmile: $config = Array( 'protocol' => 'smtp', 'smtp_host' => 'ssl://smtp.googlemail.com', 'smtp_port' => 465, 'smtp_user' => '[email protected]', 'smtp_pass' => 'mypassword', ); $this->load->library('email', $config); $this->email->set_newline("\r\n"); $this->email->from('[email protected]', 'Mr. Test'); $this->email->to('[email protected]'); $this->email->subject(' My mail through codeigniter from localhost '); $this->email->message('Hello World...'); if (!$this->email->send()) show_error($this->email->print_debugger()); else echo 'Your e-mail has been sent!'; Got Solution from this thread http://ellislab.com/forums/viewthread/84689/ Anyway Thanks |
Messages In This Thread |
How can I send email from localhost using my gmail account. - by El Forum - 04-29-2009, 09:49 AM
How can I send email from localhost using my gmail account. - by El Forum - 04-29-2009, 10:06 AM
How can I send email from localhost using my gmail account. - by El Forum - 04-29-2009, 10:23 AM
How can I send email from localhost using my gmail account. - by El Forum - 04-29-2009, 12:22 PM
How can I send email from localhost using my gmail account. - by El Forum - 04-30-2009, 01:44 AM
How can I send email from localhost using my gmail account. - by El Forum - 08-13-2014, 08:07 AM
How can I send email from localhost using my gmail account. - by El Forum - 08-13-2014, 08:10 AM
How can I send email from localhost using my gmail account. - by El Forum - 08-13-2014, 09:43 AM
How can I send email from localhost using my gmail account. - by El Forum - 08-13-2014, 09:45 AM
|