You are here:
< Back

CodeIgniter

CodeIgniter comes with an email sending library built in. See more information on how to use CodeIgniter with Mail250.

<?php
$this->load->library('email');

$this->email->initialize(array(
  'protocol' => 'smtp',
  'smtp_host' => 'smtp.swipemail.in',
  'smtp_user' => 'mail250username',
  'smtp_pass' => 'mail250password',
  'smtp_port' => 2525,
  'crlf' => "\r\n",
  'newline' => "\r\n"
));

$this->email->from('your@example.com', 'Your Name');
$this->email->to('someoneexampexample@example.com');
$this->email->cc('another@another-example.com');
$this->email->bcc('them@their-example.com');
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();

echo $this->email->print_debugger();
?>
Please follow and like us:
Menu
🎁 Lighting Deal - Up to 20% OFF | Making Email Marketing Affordable!!! GET OFFER CODE!
🎁 Lighting Deal - Up to 20% OFF | Making Email Marketing Affordable!!! GET OFFER CODE!