![]() |
Sending email with gmail smtp with codeigniter email library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Sending email with gmail smtp with codeigniter email library (/showthread.php?tid=23655) Pages:
1
2
|
Sending email with gmail smtp with codeigniter email library - El Forum - 04-07-2013 [eluser]futo[/eluser] [quote author="dsloan" date="1255893123"]I had problems with this initially and got around it by loading the parameters into an array, then initialising the library using the array. Code: $config = Array( This helped me 2 ! ... ![]() ![]() Just REMOVING THE FILE "email.php" (or renaming it) in the config folder in CodeIgniter MAKES THE DIFFERENCE. EDIT: AND !!! ... then I had to install sendmail (Linux/debian: sudo apt-get install sendmail) because PHP - efter correcting the above error - still came up with "Unable to send email using PHP mail()" ... - Now I've received the send mail. It works. ![]() The solution works without ssl. - My method in a controller looks like this (works!): Code: public function dummymail() Later I'll see if I can get it to work with ssl. |