Sending emails with CodeIgniter in a local XAMPP server -


I am trying to send emails through localhost (XAMPP Windows 1.7.3 installation), but for hours I I am not trying any success.

This is the last code I tried:

  $ config = array ('protocol' => gt; smtp ',' smtp_host '= & gt;' ssl: //smtp.gmail.com ',' smtp_port '=> 465,' smtp_user '= & gt;' mygoogleappsuser@mydomain.com ',' smtp_pass' = & gt; 'mypassword',); $ This- & gt; Load-> Library ('email', $ config); $ This- & gt; Email-> Set_newline ("\ r \ n"); $ This- & gt; Email-> ('Mygoogleappsuser@mydomain.com', 'my name'); $ This- & gt; Email-> (Forrespient@example.com '); $ This- & gt; Email-> Subject ('Email Test'); $ This- & gt; Email-> Message ('Testing an email class.'); If ($ the-> email- & gt; send ()) {echo 'your email was sent'. '; } Other {show_error ($ this-> e-mail-> print_debugger ()); }  

Every time I try to load it, it shows that it is loading but nothing happens. Do I need to setup my server to insure email delivery?

I have messed up the php.ini and messenger's confidentiality without any luck

Any ideas are wrong?

Ensure php_openssl.dll and php_smtp.dll are enabled in your php.ini (your installer One of the Apache / bin / folder).

Why not opensll availabile?


Comments