Email Library woes |
[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!!!
[eluser]mironcho[/eluser]
It seems that you have missed something - should be $this->CI->email->... instead of $this->CI->... in your sendIt() method.
[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.
[eluser]louis w[/eluser]
Did you change them all to $this->CI->email ? Code: $this->CI->email->from($this->fromUser, 'Dean F');
[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! |
Welcome Guest, Not a member yet? Register Sign In |