How can i send email via form in CI ?

#11
[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():

#12
[eluser]erik.brannstrom[/eluser]
You need to upload the file to the server first.

#13
[eluser]dhaulagiri[/eluser]
can you pls give me rough example ? i am not a very experienced person.

#14
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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