EMAIL CLASS Cannot send email - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: EMAIL CLASS Cannot send email (/showthread.php?tid=66105) |
EMAIL CLASS Cannot send email - bazianm - 09-05-2016 Hi, I am stumped. I am trying to send an email with the email class with no success. I have tried both SMTP and SENDMAIL and I know I am doing SOMETHING wrong but I don't know what. My code is this: PHP Code: public function emailtest(){ Now, the email class doesn't work. However, the standard mail() call seems to work perfectly. Any idea what I am doing wrong here? Thanks in advance for your assistance. RE: EMAIL CLASS Cannot send email - InsiteFX - 09-06-2016 Your smtp needs to be setuo in your php.ini file, I use my comcast account for this. As far as sendmail it also has to be setup. Here is an application for Windows that will test your mail settings for you. Test Mail Server Tool |