CodeIgniter Forums
how to set email and download class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: how to set email and download class (/showthread.php?tid=7777)



how to set email and download class - El Forum - 04-23-2008

[eluser]RaiNnTeaRs[/eluser]
hi guyz, how to setting the email class so i can send email from my webs..and also can we simulate the download class and sending email via localhost ?thx


how to set email and download class - El Forum - 04-23-2008

[eluser]Crimp[/eluser]
The email class relies on the server, local or remote, to send the email. You need the server configured properly to allow for this. The most common method is to use the PHP mail() function. This requires that some paths are set correctly in your php.ini file. If you are on a shared host, this is most likely all set up for you. Other options, like SMTP, are explored in the CI user guide. If you need/want to use SMTP with SSL, CI does not (yet?) support this. Gmail is one example of such use. You can use PHPMailer as a plugin to get this functionality with CI.


how to set email and download class - El Forum - 04-28-2008

[eluser]RaiNnTeaRs[/eluser]
and about the download class, i cant use it , this is my codes


$data=file_get_contents("c:/xampp/htdocs/ci2/storage/".$fn);
$name=$fn;
//force_download($name,$data);


i managed to upload my files, but not downloading it. can some help ? thanks