![]() |
attaching files with email class - 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: attaching files with email class (/showthread.php?tid=53241) |
attaching files with email class - El Forum - 07-16-2012 [eluser]brian88[/eluser] The email debugger tells me the email sends but cannot find the file path for the attached file. Is it possible for users to attach a file directly from their computer? or do I have to upload the file on my host then attach it? controller Code: function sendEmail() { view Code: <form action="<?php echo base_url('main/sendEmail'); ?>" method="post"> attaching files with email class - El Forum - 07-17-2012 [eluser]brian88[/eluser] Has anyone had success attaching files with the email class? attaching files with email class - El Forum - 07-17-2012 [eluser]CroNiX[/eluser] Code: $this->email->attach($this->input->post('resume')); Files aren't accessible via $_POST. You'll have to follow the process for saving an uploaded file, and then attaching that saved file by supplying the full saved file path (saved on your server), to the email::attach() method. |