![]() |
message not appearing in 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: message not appearing in email (/showthread.php?tid=21785) |
message not appearing in email - El Forum - 08-20-2009 [eluser]jshultz[/eluser] I'm using the email library to send emails from a simple "contact us" type form. Everything is working and emails are being sent but there's no message. The subject and all the other data works and even the form validation. It's just the message is dropped off and all that is sent is blank email. Here's my email function: Code: class Email extends Controller And here's my contact form: Code: <?php echo form_open('email/send'); ?> message not appearing in email - El Forum - 08-20-2009 [eluser]jshultz[/eluser] I've also tried replacing Code: $this->email->message($comments); Code: $this->email->message('test message'); message not appearing in email - El Forum - 08-20-2009 [eluser]jshultz[/eluser] Still working on this. I tried changing my email from being sent my gmail to being sent my sendmail. I'm still getting the same problem where there is no message body. name, subject, etc. all work. But there is no message body either plain text or html???? Any ideas? message not appearing in email - El Forum - 08-20-2009 [eluser]jshultz[/eluser] Discovered the problem thanks to help from the IRC channel. It was the file attachment that was causing the problem. Problem solved. message not appearing in email - El Forum - 10-12-2009 [eluser]Brandon Jones[/eluser] Hi, how did you work around this? Just use another email library? message not appearing in email - El Forum - 10-12-2009 [eluser]jshultz[/eluser] The problem I was having was it was trying to attach a file that didn't exist: Code: $file = $path . '/ci_day4/attachments/newsletter1.txt'; message not appearing in email - El Forum - 10-12-2009 [eluser]Brandon Jones[/eluser] Thanks! I just figured this out myself (trying to generate a PDF in a directory that did not have write permissions). Wish CI threw an error before handing off to mail(), but oh well. |