PHPackages                             amesena/codeigniter-phpmailer8 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. amesena/codeigniter-phpmailer8

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

amesena/codeigniter-phpmailer8
==============================

A CodeIgniter 3 compatible email-library powered by PHPMailer.

1.5.2(1y ago)05MITPHPPHP &gt;=7.3.0

Since Apr 14Pushed 1y agoCompare

[ Source](https://github.com/amesena/codeigniter-phpmailer8)[ Packagist](https://packagist.org/packages/amesena/codeigniter-phpmailer8)[ Docs](https://github.com/amesena/codeigniter-phpmailer8)[ RSS](/packages/amesena-codeigniter-phpmailer8/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/e02c4305c8afedd7fa06f5f0612247d90747f67edff9f5fe5b4d013a3949538d/68747470733a2f2f706f7365722e707567782e6f72672f6976616e7463686f6c616b6f762f636f646569676e697465722d7068706d61696c65722f76)](//packagist.org/packages/ivantcholakov/codeigniter-phpmailer)[![Total Downloads](https://camo.githubusercontent.com/242cec4c186294ff6401da589ba42939757d99a43f18a5a0f7e102121c916327/68747470733a2f2f706f7365722e707567782e6f72672f6976616e7463686f6c616b6f762f636f646569676e697465722d7068706d61696c65722f646f776e6c6f616473)](//packagist.org/packages/ivantcholakov/codeigniter-phpmailer)[![Latest Unstable Version](https://camo.githubusercontent.com/0b1dc3cd28bae448c44ea7a3d33da7c2c188da4239693c15fdcc8c19d80cce7e/68747470733a2f2f706f7365722e707567782e6f72672f6976616e7463686f6c616b6f762f636f646569676e697465722d7068706d61696c65722f762f756e737461626c65)](//packagist.org/packages/ivantcholakov/codeigniter-phpmailer)[![License](https://camo.githubusercontent.com/d13dee984c5cb9dbf7972745b4198b15437bb64da4a547bfa779c610c6868665/68747470733a2f2f706f7365722e707567782e6f72672f6976616e7463686f6c616b6f762f636f646569676e697465722d7068706d61696c65722f6c6963656e7365)](//packagist.org/packages/ivantcholakov/codeigniter-phpmailer)

A CodeIgniter compatible email-library powered by PHPMailer
===========================================================

[](#a-codeigniter-compatible-email-library-powered-by-phpmailer)

Version: 1.5.1
Author: Ivan Tcholakov , 2012-2022.
License: The MIT License (MIT), Fork: Amedeo Sena This library is compatible with CodeIgniter 3.1.x and PHP &gt;= 7.3.0.

Tested on CodeIgniter 3.1.13 (March 3rd, 2022) and PHPMailer Version 6.6.4 (August 22nd, 2022).

Links
-----

[](#links)

Package:

PHPMailer:

Installation
------------

[](#installation)

Enable Composer to be used by CodeIgniter. Check this page from its documentation:  . You need to see or decide when your vendor/ directory is (to be) and within the CodeIgniter's configuration file application/config/config.php you need to set the configuration option $config\['composer\_autoload'\] accordingly. For the typical location application/vendor/ the configuration setting would look like this:

```
$config['composer_autoload'] = APPPATH.'vendor/autoload.php';
```

Within application/config/constants.php add the following lines:

```
// Path to Composer's vendor/ directory, it should end with a trailing slash.
defined('VENDORPATH') OR define('VENDORPATH', rtrim(str_replace('\\', '/', realpath(dirname(APPPATH.'vendor/autoload.php'))), '/').'/');
```

It is assumed that Composer's vendor/ directory is placed under CodeIgniter's application/ directory. Otherwise correct the setting so VENDORPATH to point correctly.

If PHPMailer was previously installed through Composer, uninstall it temporarily:

```
composer remove PHPMailer/PHPMailer

```

Now install this library's package, it will install a correct version of PHPMailer too:

```
composer require ivantcholakov/codeigniter-phpmailer

```

Create a file application/helpers/MY\_email\_helper.php with the following content:

```
