Welcome Guest, Not a member yet? Register   Sign In
Unable to send email using PHP mail(), sending Email from wamp with codeigniter (local)
#4

[eluser]Otemu[/eluser]
Hi,

No need to put the email file anywhere its already included with codeigniter, infact ignore them fiels you downloaded probably not the best example :red:

In fact just do this in one of your controllers:

Code:
$this->load->library('email');

$this->email->from('[email protected]', 'Your Name');
$this->email->to('[email protected]');
$this->email->cc('[email protected]');
$this->email->bcc('[email protected]');

echo $this->email->print_debugger();

To configure your localhost
1) Open the “php.ini“. You should know where it is located because it depends upon the particular server you’re running.

2) Search for the attribute called “SMTP” in the php.ini file.Generally you can find the line “SMTP=localhost“. change the localhost to the smtp server name of your ISP. And, there is another attribute called “smtp_port” which should be set to 25.I’ve set the following values in my php.ini file.

SMTP = smtp.wlink.com.np
smtp_port = 25

3) Restart the apache server so that PHP modules and attributes will be reloaded.

4) Now try to send the mail using codeigniter


Messages In This Thread
Unable to send email using PHP mail(), sending Email from wamp with codeigniter (local) - by El Forum - 01-23-2013, 06:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB