How can i send email via form in CI ? |
[eluser]dhaulagiri[/eluser]
Just wondering, when sending mail attachment do we need to first upload in server or we can send srainght from the desktop ? do we need to send any paramemter in $this->email->attach():
[eluser]erik.brannstrom[/eluser]
You need to upload the file to the server first.
[eluser]dhaulagiri[/eluser]
can you pls give me rough example ? i am not a very experienced person.
[eluser]erik.brannstrom[/eluser]
File uploading is explained along with examples in the user guide (http://ellislab.com/codeigniter/user-gui...ading.html). Once the file is uploaded you can attach the file as explained in the guide for the E-mail class. If done in the same step you can easily get the file path to attach from $this->upload->data(), which returns an array with one key being full_path. |
Welcome Guest, Not a member yet? Register Sign In |