Problem with sent email - 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: Problem with sent email (/showthread.php?tid=43620) |
Problem with sent email - El Forum - 07-18-2011 [eluser]Halan Batista[/eluser] Hello... How are you? I am having difficulties. I have a code for sending e-mail, but it sends twice the same email but in different ways. Follow the code below: Code: //faz envio de e-mail The first email comes correct working links and text wrapping: Code: Olá, Halan Schlickmann But the second gets no link and the text broken: Code: Olá, Halan Schlickmann Problem with sent email - El Forum - 07-18-2011 [eluser]Rok Biderman[/eluser] These two lines both send email, so it's only normal you get it twice. Code: $this->email->send(); It's also a bit hard to imagine what the if clause is supposed to do. I suggest you do something like this: Code: $data['message']=$this->email->send()?'Message successfully sent!':'Error while sending!'; so you can use it easily in a further view to acknowledge the email being sent. Problem with sent email - El Forum - 07-18-2011 [eluser]Halan Batista[/eluser] Ohhh!! Greattt!! Thanksss... It's work!! |