![]() |
Codeigniter email function and Justhost SMTP - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Codeigniter email function and Justhost SMTP (/showthread.php?tid=57070) |
Codeigniter email function and Justhost SMTP - El Forum - 02-12-2013 [eluser]Unknown[/eluser] I had somebody build me a site using PHP and Codeigniter framework.On the test server everything was working properly, but now, once the site is transfered on Justhost, email function doesnt work.At first i tought i didnt used the correct SMTP settings, but they are fine (support took a look). Basically, owner can put his property on the site (like this:http://goo.gl/AZcrj), and when the visitor fills the contact form on the bottom, email is sent to owners email address, and the he can reply to the visitors email. First time i used Justhost SMTP settings and tested it, email was sent.But from that point, till now, i always get an error when i try to send message via contact form.I even tried using Gmail SMTP settings, same thing happens :\ Here is the code (currently with Gmail SMTP), does anybody have any clue? Btw, im a PHP rookie, so i dont know much, but i did my best to explain. Code: public function send_mail($res) |