How to integrate Aritic Mail with CodeIgniter?

  Integrate Frameworks with Aritic Mail

CodeIgniter

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

It is important to use the correct end of lines using “crlf” => “\r\n” and “newline” => “\r\n”.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
$this->load->library('email');

$this->email->initialize(array(
  'protocol' => 'smtp',
  'smtp_host' => 'mail.ariticmail.com',
  'smtp_user' => 'ariticmailusername',
  'smtp_pass' => 'ariticmaildpassword',
  'smtp_port' => 25,
  '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();
?>

LEAVE A COMMENT