Send Email from Contact Form |
[eluser]elektra[/eluser]
Hi I'm fairly new to codeigniter and currently working on my final project. I have build a contact form which should send an email to my email of the form details but it is not working at all. server: XAMPP ci ver: 2.1.0 Controller Code: public function send_email() Error Quote:A PHP Error was encountered Running out of time and really need your kind help. Thank you very much.
[eluser]Samus[/eluser]
you're running it on localhost. Make sure you set your smtp to that of your isp in php.ini Have a read: http://roshanbh.com.np/2007/12/sending-e...nment.html
[eluser]CroNiX[/eluser]
Here's a pretty cool little fake mail server for windows.
[eluser]Matalina[/eluser]
Your first error is your message is wrong. You need to make it a string not an array: Code: $this->email->message(array($message, $enquiry, $tel)); Needs to be something like; Code: $this->email->message($message.$enquiry.$tel); I don't think it will affect smtp sending but it's likely it can.
[eluser]elektra[/eluser]
[quote author="Matalina" date="1333657798"]Your first error is your message is wrong. You need to make it a string not an array: Code: $this->email->message(array($message, $enquiry, $tel)); Needs to be something like; Code: $this->email->message($message.$enquiry.$tel); I don't think it will affect smtp sending but it's likely it can.[/quote] Thank you yeah it doesn't affect smtp but it did solve one error. :-)
[eluser]elektra[/eluser]
http://byitcurious.blogspot.co.uk/2009/0...mmand.html Found this to be very useful but it still didn't send any email to my email. |
Welcome Guest, Not a member yet? Register Sign In |