PHPackages                             programster/phpmailer-wrapper - 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. programster/phpmailer-wrapper

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

programster/phpmailer-wrapper
=============================

A wrapper around PHPMailer to make it easier to use.

1.2.1(2y ago)0911MITPHPPHP &gt;= 8.1.0

Since Sep 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/programster/package-phpmailer-wrapper)[ Packagist](https://packagist.org/packages/programster/phpmailer-wrapper)[ Docs](https://github.com/programster/package-emailers)[ RSS](/packages/programster-phpmailer-wrapper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (1)

PHPMailer Wrapper
=================

[](#phpmailer-wrapper)

This package makes it easier to send more advanced emails with PHPMailer.

If you just want to be able to send basic emails, using a variety of different possible drivers, you may be interested in the [emailers package](https://github.com/programster/package-emailers) instead.

Install
-------

[](#install)

One can install the package with [Composer](https://getcomposer.org/) by running:

```
composer require programster/phpmailer-wrapper
```

Example Usage
-------------

[](#example-usage)

Below is an example of how one may use this tool to send an invoice as an attachment in an email to another person, being sure to provide both an HTML message, and the plaintext alternative, in case any of the recipients cannot view HTML emails. In this example, we also CC the accounts email address.

```
