attaching files with email class |
[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">
[eluser]brian88[/eluser]
Has anyone had success attaching files with the email class?
[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. |
Welcome Guest, Not a member yet? Register Sign In |