Welcome Guest, Not a member yet? Register   Sign In
EMAIL SETUP
#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.


Messages In This Thread
EMAIL SETUP - by El Forum - 08-15-2011, 05:45 PM
EMAIL SETUP - by El Forum - 08-15-2011, 06:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB