Sending Mail - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Sending Mail (/showthread.php?tid=23878) Pages:
1
2
|
Sending Mail - El Forum - 10-24-2009 [eluser]Michael Nielsen[/eluser] I'm using the CI email library and can't get a single email sent. This is my controller: Code: <? I'm using Google Apps to host my email so I'm assuming I can use it to send emails from my company domain instead of a @gmail.com. I'm also generating a whopping 14 errors when I execute the controller. Code: A PHP Error was encountered Theres about 3 million fgets and fwrites errors. Code: A PHP Error was encountered Code: A PHP Error was encountered Code: A PHP Error was encountered thanks in advance. Sending Mail - El Forum - 10-24-2009 [eluser]imn.codeartist[/eluser] enable extension=php_openssl.dll in your php.ini and restart apache this should allow you to send email Sending Mail - El Forum - 10-24-2009 [eluser]Michael Nielsen[/eluser] no. still giving the same error. I even tired using an @gmail.com address. Sending Mail - El Forum - 10-24-2009 [eluser]imn.codeartist[/eluser] I used the same code and tested in my local as it was giving same error before but once i enabled the ssl extension that i posted earlier then it just worked. Sending Mail - El Forum - 10-24-2009 [eluser]Michael Nielsen[/eluser] does this error make any sense to you? Code: A PHP Error was encountered Sending Mail - El Forum - 10-24-2009 [eluser]imn.codeartist[/eluser] did you modify the core files of Codeigniter ?? Sending Mail - El Forum - 10-24-2009 [eluser]imn.codeartist[/eluser] This is the class and I renamed it with Emailer as there is already Email class in the CI library and that may produce conflict... Try this one Code: <? Sending Mail - El Forum - 10-24-2009 [eluser]Michael Nielsen[/eluser] nup i still get the same error. is something wrong with my php config?? Sending Mail - El Forum - 10-24-2009 [eluser]imn.codeartist[/eluser] Then must be something wrong with your php configuration or try reinstalling codeigniter Sending Mail - El Forum - 10-25-2009 [eluser]Unknown[/eluser] Hi, Don't know how helpful this will be but the fsockopen error may be an indication that you are running this on windows. fsockopen is broken in windows. Not sure how to fix it but maybe it's a direction worth exploring. jephroni |