SOLVED: Email sending twice |
[eluser]wakey[/eluser]
I've just started using the email class for a contact form. Got it up and running nicely, however, the form is appearing twice in my inbox rather than once. Can anyone help me here? My controller Code: $name = $this->input->post('name');
[eluser]wakey[/eluser]
<del>Ahh, it seems to be something to do with the redirect upon success. Any idea why this redirect would cause it to send twice?</del> Forget that. It seems to be something to do with the if and else statement. If I remove it, it only sends once!
[eluser]wakey[/eluser]
Sorry for all the posts but this may help someone. I changed the end of my code to - Code: $sent = $this->email->send(); and it only sends once.
|
Welcome Guest, Not a member yet? Register Sign In |