![]() |
Email Library woes - 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: Email Library woes (/showthread.php?tid=9964) |
Email Library woes - El Forum - 07-14-2008 [eluser]stuffradio[/eluser] I'm using my own library to send email. Code: <?php Whenever I try using this library, I get a blank page and Apache throws the following error: Quote:PHP Fatal error: Call to undefined method Picture::from() in /var/www/vhosts/xxxxx/httpdocs/system/application/libraries/sendemaillib.php on line 21, referer: xxxxx/index.php/picture/id/2 Line 21 is Quote: $this->CI->from($this->fromUser, 'Dean F'); The code using this is: Code: $this->sendemaillib->toUser = $getUser->email; Hope you can help!!! Email Library woes - El Forum - 07-15-2008 [eluser]mironcho[/eluser] It seems that you have missed something - should be $this->CI->email->... instead of $this->CI->... in your sendIt() method. Email Library woes - El Forum - 07-15-2008 [eluser]stuffradio[/eluser] I forgot to post that I tried it that way before as well... I was just trying different ways to see if it would work, but it doesn't. So $this->CI->email doesn't work for me either. Email Library woes - El Forum - 07-15-2008 [eluser]louis w[/eluser] Did you change them all to $this->CI->email ? Code: $this->CI->email->from($this->fromUser, 'Dean F'); Email Library woes - El Forum - 07-15-2008 [eluser]stuffradio[/eluser] Yeah, I already said I did :p Email Library woes - El Forum - 07-16-2008 [eluser]stuffradio[/eluser] I solved my problem by using the native mail function. I'm not using this email library anymore because it screws up! |