PHPackages                             phpmailerflamin/phpmailer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. phpmailerflamin/phpmailer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phpmailerflamin/phpmailer
=========================

PHPMailer Editado para menos arquivos

09.7k↓66.7%2PHP

Since Mar 30Pushed 12y ago1 watchersCompare

[ Source](https://github.com/falexandre/PHPMailer)[ Packagist](https://packagist.org/packages/phpmailerflamin/phpmailer)[ RSS](/packages/phpmailerflamin-phpmailer/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD [![PHPMailer](https://camo.githubusercontent.com/9cb2da7fa70cc106ef21262c050af43fe6d16d9a3021418be24513c2fe0d7b00/68747470733a2f2f7261772e6769746875622e636f6d2f5048504d61696c65722f5048504d61696c65722f6d61737465722f6578616d706c65732f696d616765732f7068706d61696c65722e706e67)](https://camo.githubusercontent.com/9cb2da7fa70cc106ef21262c050af43fe6d16d9a3021418be24513c2fe0d7b00/68747470733a2f2f7261772e6769746875622e636f6d2f5048504d61696c65722f5048504d61696c65722f6d61737465722f6578616d706c65732f696d616765732f7068706d61696c65722e706e67)

PHPMailer - A full-featured email creation and transfer class for PHP
=====================================================================

[](#phpmailer---a-full-featured-email-creation-and-transfer-class-for-php)

Build status: [![Build Status](https://camo.githubusercontent.com/7a21522207742169e51e31032f0aec1515d56eeef47fd18b43edee228542e20e/68747470733a2f2f7472617669732d63692e6f72672f5048504d61696c65722f5048504d61696c65722e706e67)](https://travis-ci.org/PHPMailer/PHPMailer)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/689aaed6796eb861f94a0220afe455603f25f76bb50927ff48c7724821806fa7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5048504d61696c65722f5048504d61696c65722f6261646765732f7175616c6974792d73636f72652e706e673f733d33373538653231643237396265636466383437613535376135366133656431366466656339643564)](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/)[![Code Coverage](https://camo.githubusercontent.com/84c9b6c9bc4c027519a2f5af556ac30740e2921c6ca4aa8123f295f16c8fce41/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5048504d61696c65722f5048504d61696c65722f6261646765732f636f7665726167652e706e673f733d33666536636135666538636432636466393632383537353665343239333266376361323536393632)](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/)

Class Features
--------------

[](#class-features)

- Probably the world's most popular code for sending email from PHP!
- Used by many open-source projects: Drupal, SugarCRM, Yii, Joomla! and many more
- Integrated SMTP support - send without a local mail server
- Send emails with multiple TOs, CCs, BCCs and REPLY-TOs
- Multipart/alternative emails for mail clients that do not read HTML email
- Support for 8bit, base64, binary, and quoted-printable encoding
- SMTP authentication with LOGIN, PLAIN, NTLM and CRAM-MD5 mechanisms
- Native language support
- DKIM and S/MIME encryption support
- Compatible with PHP 5.0 and later
- Much more!

Why you might need it
---------------------

[](#why-you-might-need-it)

Many PHP developers utilize email in their code. The only PHP function that supports this is the mail() function. However, it does not provide any assistance for making use of popular features such as HTML-based emails and attachments.

Formatting email correctly is surprisingly difficult. There are myriad overlapping RFCs, requiring tight adherence to horribly complicated formatting and encoding rules - the vast majority of code that you'll find online that uses the mail() function directly is just plain wrong! *Please* don't be tempted to do it yourself - if you don't use PHPMailer, there are many other excellent libraries that you should look at before rolling your own - try SwiftMailer, Zend\_Mail, eZcomponents etc.

The PHP mail() function usually sends via a local mail server, typically fronted by a `sendmail` binary on Linux, BSD and OS X platforms, however, Windows usually doesn't include a local mail server; PHPMailer's integrated SMTP implementation allows email sending on Windows platforms without a local mail server.

License
-------

[](#license)

This software is licenced under the [LGPL 2.1](http://www.gnu.org/licenses/lgpl-2.1.html). Please read LICENSE for information on the software availability and distribution.

Installation &amp; loading
--------------------------

[](#installation--loading)

PHPMailer is available via [Composer/Packagist](https://packagist.org/packages/phpmailer/phpmailer). Alternatively, just copy the contents of the PHPMailer folder into somewhere that's in your PHP `include_path` setting. If you don't speak git or just want a tarball, click the 'zip' button at the top of the page in GitHub.

PHPMailer provides an SPL-compatible autoloader, and that is the preferred way of loading the library - just `require '/path/to/PHPMailerAutoload.php';` and everything should work. The autoloader does not throw errors if it can't find classes so it prepends itself to the SPL list, allowing your own (or your framework's) autoloader to catch errors. SPL autoloading was introduced in PHP 5.1.0, so if you are using a version older than that you will need to require/include each class manually. PHPMailer does *not* declare a namespace because namespaces were only introduced in PHP 5.3.

### Minimal installation

[](#minimal-installation)

While installing the entire package manually or with composer is simple, convenient and reliable, you may want to include only vital files in your project. At the very least you will need [class.phpmailer.php](class.phpmailer.php). If you're using SMTP, you'll need [class.smtp.php](class.smtp.php), and if you're using POP-before SMTP, you'll need [class.pop3.php](class.pop3.php). For all of these, we recommend you use [the autoloader](PHPMailerAutoload.php) too. You can skip the [language](language/) folder if you're not showing errors to users and can make do with English-only errors. You may need the additional classes in the [extras](extras/) folder if you are using those features, including NTLM authentication, advanced HTML-to-text conversion and ics generation.

A Simple Example
----------------

[](#a-simple-example)

```
