Welcome Guest, Not a member yet? Register   Sign In
EMAIL SETUP
#1

[eluser]Unknown[/eluser]
HI All,

Does anyone know how to set up e-mail configuration on here? Like i developed my script to send e-mail but i'm confused on how to get it to work on the server. Currently using localhost (would it be possible to send e-mail that way?) Any assistance will be a plus :-)
#2

[eluser]Rok Biderman[/eluser]
The instructions for sending mail are here. If you don't have a sendmail (or similar) configured on your server, you best be using smtp method with the data of your outgoing mail. It would go something like this.

Code:
$this->load->library('email');
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'your.smtp.server';
$config['smtp_user'] = 'username';
$config['smtp_pass'] = 'password';
$this->email->initialize($config);
$this->email->from('[email protected]', 'Your name');
$this->email->to('[email protected]');
$this->email->subject('Subject');
$this->email->message('Test message');
$this->email->send();

Check the documentation link I provided for additional options, like html emails.




Theme © iAndrew 2016 - Forum software by © MyBB