Welcome Guest, Not a member yet? Register   Sign In
How can i send email via form in CI ?

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():

You need to upload the file to the server first.

can you pls give me rough example ? i am not a very experienced person.

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.

Theme © iAndrew 2016 - Forum software by © MyBB