For Developers By Developers

You can integrate Mailazy in minutes with your platform. Build and monitor your email solution on a trusted foundation with technical and strategic support when you need it the most.

Trusted by 120+ partners and delivering over 650 Million emails/month

Configure SMTP with CodeIgniter

Prerequisites

You need to complete these given prerequisites, you can skip the step if you have already completed.

  1. Sign up for a Mailazy account.

  2. Complete Domain Authentication.

  3. Generate the Mailazy Access Key

Integrate Mailazy with CodeIgniter

CodeIgniter comes with an email sending library built in. It is important to use the correct end of lines using "crlf" => "\r\n" and "newline" => "\r\n".

load->library('email');
$this->email->initialize(array(
  'protocol' => 'smtp',
  'smtp_host' => 'smtp.mailazy.com',
  'smtp_user' => 'access_key',
  'smtp_pass' => 'access_secret',
  'smtp_port' =>  587,
  'crlf' => "\r\n",
  'newline' => "\r\n"
));

$this->email->from('your@example.com', 'Your Name');
$this->email->to('someoneexampexample@example.com');
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();
echo  $this->email->print_debugger();
?>

Send transactional emails with Mailazy

Mailazy email delivery platform is powered by AI and uses the global infrastructure so that you can scale effortlessly. Mailazy is the trusted transactional email provider for hundreds of businesses and we are growing every day. We are known for being the most reliable and trusted senders on the internet.

Ready to get started?

Get started — it's free