email class doesn't work - 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 class doesn't work (/showthread.php?tid=20855) Pages:
1
2
|
email class doesn't work - El Forum - 07-23-2009 [eluser]aryan_[/eluser] I am using codeigniter email class to send email, but it doesn't work. page freezes. I'm using xampp. Can I send email using gmail. Please reply asap. thanks email class doesn't work - El Forum - 07-23-2009 [eluser]johnnyForums[/eluser] [quote author="aryan_" date="1248399063"]I am using codeigniter email class to send email, but it doesn't work. page freezes. I'm using xampp. Can I send email using gmail. Please reply asap. thanks[/quote] Maybe you should post some code. Your message is kind of vague. email class doesn't work - El Forum - 07-23-2009 [eluser]aryan_[/eluser] $this->load->library('email'); $this->email->from('aryan@localhost.com', 'aryan'); $this->email->to('[email protected]', 'test'); $this->email->subject('Email subject'); $this->email->message('Testing the email class.'); $this->email->send(); I followed this tutorial http://www.tildemark.com/programming/php/sending-mail-via-mercury-on-localhost-using-codeigniter-and-xampp.html email class doesn't work - El Forum - 07-24-2009 [eluser]InsiteFX[/eluser] Hi aryan_, I use this for testing my emails on xampp. http://www.toolheap.com/test-mail-server-tool/ email class doesn't work - El Forum - 07-24-2009 [eluser]eoinmcg[/eluser] [quote author="aryan_" date="1248399063"] Can I send email using gmail. [/quote] Yup. http://ellislab.com/forums/viewthread/84689/ email class doesn't work - El Forum - 07-24-2009 [eluser]InsiteFX[/eluser] Hi eoinmcg, PHP will send email from your own sever, so if you have your own online website you should have a mail server Enjoy InsiteFX email class doesn't work - El Forum - 07-24-2009 [eluser]eoinmcg[/eluser] Hi InsiteFX, Haven't used XAMP myself hence answering only the part about whether CI can send via gmail. Quote:PHP will send email from your own sever, so if you have your own online website you should have a mail server Personally I don't like doing it this way; seems to get caught by spam filters way too much and when setting up production servers I tend to install only the bare minimum. Each to his (or her) own, though ;-P email class doesn't work - El Forum - 07-24-2009 [eluser]aryan_[/eluser] [quote author="InsiteFX" date="1248478214"]Hi eoinmcg, PHP will send email from your own sever, so if you have your own online website you should have a mail server Enjoy InsiteFX[/quote] I don't have any website. Does dynamic ip causes any issue? email class doesn't work - El Forum - 07-25-2009 [eluser]eoinmcg[/eluser] Like I said, I haven't used XAMP, but it sounds to me like you don't have any kind of mail server set up. Did you try with gmail? There is sample code on the page I linked to above : Code: $config = Array( That should do the job. email class doesn't work - El Forum - 07-25-2009 [eluser]aryan_[/eluser] Thanks guys. I have purchased hosting with smtp. Now I'm able to send email. Thanks again for your kind help. |