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 ( 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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.