Welcome Guest, Not a member yet? Register   Sign In
how to set email and download class
#1

[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
#2

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

[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




Theme © iAndrew 2016 - Forum software by © MyBB