"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "README.md" between
PHPMailer-6.2.0.tar.gz and PHPMailer-6.3.0.tar.gz

About: PHPMailer is a PHP email transport class that features multiple file attachments, CCs, BCCs, REPLY-TOs, HTML messages, redundant SMTP servers, and word wrap, among others.

README.md  (PHPMailer-6.2.0):README.md  (PHPMailer-6.3.0)
![PHPMailer](https://raw.github.com/PHPMailer/PHPMailer/master/examples/images/p hpmailer.png) ![PHPMailer](https://raw.github.com/PHPMailer/PHPMailer/master/examples/images/p hpmailer.png)
# 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://travis-ci.org/PHPMailer/PHPMailer.svg)](h [![Test status](https://github.com/PHPMailer/PHPMailer/workflows/Tests/badge.svg
ttps://travis-ci.org/PHPMailer/PHPMailer) )](https://github.com/PHPMailer/PHPMailer/actions) [![Latest Stable Version](htt
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/b ps://poser.pugx.org/phpmailer/phpmailer/v/stable.svg)](https://packagist.org/pac
adges/quality-score.png?s=3758e21d279becdf847a557a56a3ed16dfec9d5d)](https://scr kages/phpmailer/phpmailer) [![Total Downloads](https://poser.pugx.org/phpmailer/
utinizer-ci.com/g/PHPMailer/PHPMailer/) phpmailer/downloads)](https://packagist.org/packages/phpmailer/phpmailer) [![Lat
[![Code Coverage](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/badges/covera est Unstable Version](https://poser.pugx.org/phpmailer/phpmailer/v/unstable.svg)
ge.png?s=3fe6ca5fe8cd2cdf96285756e42932f7ca256962)](https://scrutinizer-ci.com/g ](https://packagist.org/packages/phpmailer/phpmailer) [![License](https://poser.
/PHPMailer/PHPMailer/) pugx.org/phpmailer/phpmailer/license.svg)](https://packagist.org/packages/phpmai
ler/phpmailer) [![API Docs](https://github.com/phpmailer/phpmailer/workflows/Doc
s/badge.svg)](https://phpmailer.github.io/PHPMailer/)
[![Latest Stable Version](https://poser.pugx.org/phpmailer/phpmailer/v/stable.sv ## Features
g)](https://packagist.org/packages/phpmailer/phpmailer) [![Total Downloads](http
s://poser.pugx.org/phpmailer/phpmailer/downloads)](https://packagist.org/package
s/phpmailer/phpmailer) [![Latest Unstable Version](https://poser.pugx.org/phpmai
ler/phpmailer/v/unstable.svg)](https://packagist.org/packages/phpmailer/phpmaile
r) [![License](https://poser.pugx.org/phpmailer/phpmailer/license.svg)](https://
packagist.org/packages/phpmailer/phpmailer) [![API Docs](https://github.com/phpm
ailer/phpmailer/workflows/Docs/badge.svg)](http://phpmailer.github.io/PHPMailer/
)
## Class Features
- Probably the world's most popular code for sending email from PHP! - Probably the world's most popular code for sending email from PHP!
- Used by many open-source projects: WordPress, Drupal, 1CRM, SugarCRM, Yii, Joo mla! and many more - Used by many open-source projects: WordPress, Drupal, 1CRM, SugarCRM, Yii, Joo mla! and many more
- Integrated SMTP support - send without a local mail server - Integrated SMTP support send without a local mail server
- Send emails with multiple To, CC, BCC and Reply-to addresses - Send emails with multiple To, CC, BCC and Reply-to addresses
- Multipart/alternative emails for mail clients that do not read HTML email - Multipart/alternative emails for mail clients that do not read HTML email
- Add attachments, including inline - Add attachments, including inline
- Support for UTF-8 content and 8bit, base64, binary, and quoted-printable encod ings - Support for UTF-8 content and 8bit, base64, binary, and quoted-printable encod ings
- SMTP authentication with LOGIN, PLAIN, CRAM-MD5, and XOAUTH2 mechanisms over S SL and SMTP+STARTTLS transports - SMTP authentication with LOGIN, PLAIN, CRAM-MD5, and XOAUTH2 mechanisms over S MTPS and SMTP+STARTTLS transports
- Validates email addresses automatically - Validates email addresses automatically
- Protect against header injection attacks - Protects against header injection attacks
- Error messages in over 50 languages! - Error messages in over 50 languages!
- DKIM and S/MIME signing support - DKIM and S/MIME signing support
- Compatible with PHP 5.5 and later - Compatible with PHP 5.5 and later, including PHP 8.0
- Namespaced to prevent name clashes - Namespaced to prevent name clashes
- Much more! - Much more!
## Why you might need it ## Why you might need it
Many PHP developers need to send email from their code. The only PHP function th Many PHP developers need to send email from their code. The only PHP function th
at supports this is [`mail()`](https://www.php.net/manual/en/function.mail.php). at supports this directly is [`mail()`](https://www.php.net/manual/en/function.m
However, it does not provide any assistance for making use of popular features ail.php). However, it does not provide any assistance for making use of popular
such as encryption, authentication, HTML messages, and attachments. features such as encryption, authentication, HTML messages, and attachments.
Formatting email correctly is surprisingly difficult. There are myriad overlappi
ng (and conflicting) standards, requiring tight adherence to horribly complicate
d formatting and encoding rules – the vast majority of code that you'll find onl
ine that uses the `mail()` function directly is just plain wrong, if not unsafe!
Formatting email correctly is surprisingly difficult. There are myriad overlappi The PHP `mail()` function usually sends via a local mail server, typically front
ng RFCs, requiring tight adherence to horribly complicated formatting and encodi ed by a `sendmail` binary on Linux, BSD, and macOS platforms, however, Windows u
ng rules – the vast majority of code that you'll find online that uses the `mail sually doesn't include a local mail server; PHPMailer's integrated SMTP client a
()` function directly is just plain wrong! llows email sending on all platforms without needing a local mail server. Be awa
*Please* don't be tempted to do it yourself – if you don't use PHPMailer, there re though, that the `mail()` function should be avoided when possible; it's both
are many other excellent libraries that you should look at before rolling your o faster and [safer](https://exploitbox.io/paper/Pwning-PHP-Mail-Function-For-Fun
wn. Try [SwiftMailer](https://swiftmailer.symfony.com/), [Zend/Mail](https://zen -And-RCE.html) to use SMTP to localhost.
dframework.github.io/zend-mail/), [ZetaComponents](https://github.com/zetacompon
ents/Mail) etc.
The PHP `mail()` function usually sends via a local mail server, typically front *Please* don't be tempted to do it yourself – if you don't use PHPMailer, there
ed by a `sendmail` binary on Linux, BSD, and macOS platforms, however, Windows u are many other excellent libraries that
sually doesn't include a local mail server; PHPMailer's integrated SMTP implemen you should look at before rolling your own. Try [SwiftMailer](https://swiftmaile
tation allows email sending on Windows platforms without a local mail server. r.symfony.com/)
, [Laminas/Mail](https://docs.laminas.dev/laminas-mail/), [ZetaComponents](https
://github.com/zetacomponents/Mail) etc.
## License ## License
This software is distributed under the [LGPL 2.1](http://www.gnu.org/licenses/lg pl-2.1.html) license, along with the [GPL Cooperation Commitment](https://gplcc. github.io/gplcc/). Please read LICENSE for information on the software availabil ity and distribution. This software is distributed under the [LGPL 2.1](http://www.gnu.org/licenses/lg pl-2.1.html) license, along with the [GPL Cooperation Commitment](https://gplcc. github.io/gplcc/). Please read [LICENSE](https://github.com/PHPMailer/PHPMailer/ blob/master/LICENSE) for information on the software availability and distributi on.
## Installation & loading ## Installation & loading
PHPMailer is available on [Packagist](https://packagist.org/packages/phpmailer/p hpmailer) (using semantic versioning), and installation via [Composer](https://g etcomposer.org) is the recommended way to install PHPMailer. Just add this line to your `composer.json` file: PHPMailer is available on [Packagist](https://packagist.org/packages/phpmailer/p hpmailer) (using semantic versioning), and installation via [Composer](https://g etcomposer.org) is the recommended way to install PHPMailer. Just add this line to your `composer.json` file:
```json ```json
"phpmailer/phpmailer": "~6.1" "phpmailer/phpmailer": "^6.2"
``` ```
or run or run
```sh ```sh
composer require phpmailer/phpmailer composer require phpmailer/phpmailer
``` ```
Note that the `vendor` folder and the `vendor/autoload.php` script are generated by Composer; they are not part of PHPMailer. Note that the `vendor` folder and the `vendor/autoload.php` script are generated by Composer; they are not part of PHPMailer.
If you want to use the Gmail XOAUTH2 authentication class, you will also need to add a dependency on the `league/oauth2-client` package in your `composer.json`. If you want to use the Gmail XOAUTH2 authentication class, you will also need to add a dependency on the `league/oauth2-client` package in your `composer.json`.
Alternatively, if you're not using Composer, copy the contents of the PHPMailer Alternatively, if you're not using Composer, you
folder into one of the `include_path` directories specified in your PHP configur can [download PHPMailer as a zip file](https://github.com/PHPMailer/PHPMailer/ar
ation and load each class file manually: chive/master.zip), (note that docs and examples are not included in the zip file
), then copy the contents of the PHPMailer folder into one of the `include_path`
directories specified in your PHP configuration and load each class file manual
ly:
```php ```php
<?php <?php
use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception; use PHPMailer\PHPMailer\Exception;
require 'path/to/PHPMailer/src/Exception.php'; require 'path/to/PHPMailer/src/Exception.php';
require 'path/to/PHPMailer/src/PHPMailer.php'; require 'path/to/PHPMailer/src/PHPMailer.php';
require 'path/to/PHPMailer/src/SMTP.php'; require 'path/to/PHPMailer/src/SMTP.php';
``` ```
If you're not using the `SMTP` class explicitly (you're probably not), you don't If you're not using the `SMTP` class explicitly (you're probably not), you don't
need a `use` line for the SMTP class. need a `use` line for the SMTP class. Even if you're not using exceptions, you
do still need to load the `Exception` class as it is used internally.
If you don't speak git or just want a tarball, click the 'zip' button on the rig
ht of the project page in GitHub, though note that docs and examples are not inc
luded in the tarball.
## Legacy versions ## Legacy versions
PHPMailer 5.2 (which is compatible with PHP 5.0 - 7.0) is no longer being suppor ted, even for security updates. You will find the latest version of 5.2 in the [ 5.2-stable branch](https://github.com/PHPMailer/PHPMailer/tree/5.2-stable). If y ou're using PHP 5.5 or later (which you should be), switch to the 6.x releases. PHPMailer 5.2 (which is compatible with PHP 5.0 — 7.0) is no longer supported, e ven for security updates. You will find the latest version of 5.2 in the [5.2-st able branch](https://github.com/PHPMailer/PHPMailer/tree/5.2-stable). If you're using PHP 5.5 or later (which you should be), switch to the 6.x releases.
### Upgrading from 5.2 ### Upgrading from 5.2
The biggest changes are that source files are now in the `src/` folder, and PHPM ailer now declares the namespace `PHPMailer\PHPMailer`. This has several importa nt effects – [read the upgrade guide](https://github.com/PHPMailer/PHPMailer/tre e/master/UPGRADING.md) for more details. The biggest changes are that source files are now in the `src/` folder, and PHPM ailer now declares the namespace `PHPMailer\PHPMailer`. This has several importa nt effects – [read the upgrade guide](https://github.com/PHPMailer/PHPMailer/tre e/master/UPGRADING.md) for more details.
### Minimal installation ### Minimal installation
While installing the entire package manually or with Composer is simple, conveni ent, and reliable, you may want to include only vital files in your project. At the very least you will need [src/PHPMailer.php](https://github.com/PHPMailer/PH PMailer/tree/master/src/PHPMailer.php). If you're using SMTP, you'll need [src/S MTP.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/SMTP.php), and i f you're using POP-before SMTP, you'll need [src/POP3.php](https://github.com/PH PMailer/PHPMailer/tree/master/src/POP3.php). You can skip the [language](https:/ /github.com/PHPMailer/PHPMailer/tree/master/language/) folder if you're not show ing errors to users and can make do with English-only errors. If you're using XO AUTH2 you will need [src/OAuth.php](https://github.com/PHPMailer/PHPMailer/tree/ master/src/OAuth.php) as well as the Composer dependencies for the services you wish to authenticate with. Really, it's much easier to use Composer! While installing the entire package manually or with Composer is simple, conveni ent, and reliable, you may want to include only vital files in your project. At the very least you will need [src/PHPMailer.php](https://github.com/PHPMailer/PH PMailer/tree/master/src/PHPMailer.php). If you're using SMTP, you'll need [src/S MTP.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/SMTP.php), and i f you're using POP-before SMTP (*very* unlikely!), you'll need [src/POP3.php](ht tps://github.com/PHPMailer/PHPMailer/tree/master/src/POP3.php). You can skip the [language](https://github.com/PHPMailer/PHPMailer/tree/master/language/) folder if you're not showing errors to users and can make do with English-only errors. If you're using XOAUTH2 you will need [src/OAuth.php](https://github.com/PHPMai ler/PHPMailer/tree/master/src/OAuth.php) as well as the Composer dependencies fo r the services you wish to authenticate with. Really, it's much easier to use Co mposer!
## A Simple Example ## A Simple Example
```php ```php
<?php <?php
// Import PHPMailer classes into the global namespace //Import PHPMailer classes into the global namespace
// These must be at the top of your script, not inside a function //These must be at the top of your script, not inside a function
use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception; use PHPMailer\PHPMailer\Exception;
// Load Composer's autoloader //Load Composer's autoloader
require 'vendor/autoload.php'; require 'vendor/autoload.php';
// Instantiation and passing `true` enables exceptions //Instantiation and passing `true` enables exceptions
$mail = new PHPMailer(true); $mail = new PHPMailer(true);
try { try {
//Server settings //Server settings
$mail->SMTPDebug = SMTP::DEBUG_SERVER; // Enable verbos $mail->SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose
e debug output debug output
$mail->isSMTP(); // Send using SM $mail->isSMTP(); //Send using SMT
TP P
$mail->Host = 'smtp1.example.com'; // Set the SMTP $mail->Host = 'smtp.example.com'; //Set the SMTP s
server to send through erver to send through
$mail->SMTPAuth = true; // Enable SMTP a $mail->SMTPAuth = true; //Enable SMTP au
uthentication thentication
$mail->Username = 'user@example.com'; // SMTP username $mail->Username = 'user@example.com'; //SMTP username
$mail->Password = 'secret'; // SMTP password $mail->Password = 'secret'; //SMTP password
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Enable TLS en $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; //Enable TLS enc
cryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged ryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged
$mail->Port = 587; // TCP port to c $mail->Port = 587; //TCP port to co
onnect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above nnect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above
//Recipients //Recipients
$mail->setFrom('from@example.com', 'Mailer'); $mail->setFrom('from@example.com', 'Mailer');
$mail->addAddress('joe@example.net', 'Joe User'); // Add a recipient $mail->addAddress('joe@example.net', 'Joe User'); //Add a recipient
$mail->addAddress('ellen@example.com'); // Name is optional $mail->addAddress('ellen@example.com'); //Name is optional
$mail->addReplyTo('info@example.com', 'Information'); $mail->addReplyTo('info@example.com', 'Information');
$mail->addCC('cc@example.com'); $mail->addCC('cc@example.com');
$mail->addBCC('bcc@example.com'); $mail->addBCC('bcc@example.com');
// Attachments //Attachments
$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments $mail->addAttachment('/var/tmp/file.tar.gz'); //Add attachments
$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); //Optional name
// Content //Content
$mail->isHTML(true); // Set email format to $mail->isHTML(true); //Set email format to
HTML HTML
$mail->Subject = 'Here is the subject'; $mail->Subject = 'Here is the subject';
$mail->Body = 'This is the HTML message body <b>in bold!</b>'; $mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
$mail->send(); $mail->send();
echo 'Message has been sent'; echo 'Message has been sent';
} catch (Exception $e) { } catch (Exception $e) {
echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
} }
``` ```
You'll find plenty more to play with in the [examples](https://github.com/PHPMai ler/PHPMailer/tree/master/examples) folder. You'll find plenty to play with in the [examples](https://github.com/PHPMailer/P HPMailer/tree/master/examples) folder, which covers many common scenarios includ ing sending through gmail, building contact forms, sending to mailing lists, and more.
If you are re-using the instance (e.g. when sending to a mailing list), you may need to clear the recipient list to avoid sending duplicate messages. See [the m ailing list example](https://github.com/PHPMailer/PHPMailer/blob/master/examples /mailing_list.phps) for further guidance. If you are re-using the instance (e.g. when sending to a mailing list), you may need to clear the recipient list to avoid sending duplicate messages. See [the m ailing list example](https://github.com/PHPMailer/PHPMailer/blob/master/examples /mailing_list.phps) for further guidance.
That's it. You should now be ready to use PHPMailer! That's it. You should now be ready to use PHPMailer!
## Localization ## Localization
PHPMailer defaults to English, but in the [language](https://github.com/PHPMaile r/PHPMailer/tree/master/language/) folder you'll find many translations for PHPM ailer error messages that you may encounter. Their filenames contain [ISO 639-1] (http://en.wikipedia.org/wiki/ISO_639-1) language code for the translations, for example `fr` for French. To specify a language, you need to tell PHPMailer whic h one to use, like this: PHPMailer defaults to English, but in the [language](https://github.com/PHPMaile r/PHPMailer/tree/master/language/) folder you'll find many translations for PHPM ailer error messages that you may encounter. Their filenames contain [ISO 639-1] (http://en.wikipedia.org/wiki/ISO_639-1) language code for the translations, for example `fr` for French. To specify a language, you need to tell PHPMailer whic h one to use, like this:
```php ```php
// To load the French version //To load the French version
$mail->setLanguage('fr', '/optional/path/to/language/directory/'); $mail->setLanguage('fr', '/optional/path/to/language/directory/');
``` ```
We welcome corrections and new languages - if you're looking for corrections to do, run the [PHPMailerLangTest.php](https://github.com/PHPMailer/PHPMailer/tree/ master/test/PHPMailerLangTest.php) script in the tests folder and it will show a ny missing translations. We welcome corrections and new languages if you're looking for corrections to do, run the [PHPMailerLangTest.php](https://github.com/PHPMailer/PHPMailer/tree/ master/test/PHPMailerLangTest.php) script in the tests folder and it will show a ny missing translations.
## Documentation ## Documentation
Start reading at the [GitHub wiki](https://github.com/PHPMailer/PHPMailer/wiki). If you're having trouble, this should be the first place you look as it's the m ost frequently updated. Start reading at the [GitHub wiki](https://github.com/PHPMailer/PHPMailer/wiki). If you're having trouble, head for [the troubleshooting guide](https://github.c om/PHPMailer/PHPMailer/wiki/Troubleshooting) as it's frequently updated.
Examples of how to use PHPMailer for common scenarios can be found in the [examp les](https://github.com/PHPMailer/PHPMailer/tree/master/examples) folder. If you 're looking for a good starting point, we recommend you start with [the Gmail ex ample](https://github.com/PHPMailer/PHPMailer/tree/master/examples/gmail.phps). Examples of how to use PHPMailer for common scenarios can be found in the [examp les](https://github.com/PHPMailer/PHPMailer/tree/master/examples) folder. If you 're looking for a good starting point, we recommend you start with [the Gmail ex ample](https://github.com/PHPMailer/PHPMailer/tree/master/examples/gmail.phps).
Note that in order to reduce PHPMailer's deployed code footprint, the examples a re no longer included if you load PHPMailer via Composer or via [GitHub's zip fi le download](https://github.com/PHPMailer/PHPMailer/archive/master.zip), so you' ll need to either clone the git repository or use the above links to get to the examples directly. To reduce PHPMailer's deployed code footprint, examples are not included if you load PHPMailer via Composer or via [GitHub's zip file download](https://github.c om/PHPMailer/PHPMailer/archive/master.zip), so you'll need to either clone the g it repository or use the above links to get to the examples directly.
Complete generated API documentation is [available online](http://phpmailer.gith ub.io/PHPMailer/). Complete generated API documentation is [available online](https://phpmailer.git hub.io/PHPMailer/).
You can generate complete API-level documentation by running `phpdoc` in the top -level folder, and documentation will appear in the `docs` folder, though you'll need to have [PHPDocumentor](http://www.phpdoc.org) installed. You may find [th e unit tests](https://github.com/PHPMailer/PHPMailer/blob/master/test/PHPMailerT est.php) a good source of how to do various operations such as encryption. You can generate complete API-level documentation by running `phpdoc` in the top -level folder, and documentation will appear in the `docs` folder, though you'll need to have [PHPDocumentor](http://www.phpdoc.org) installed. You may find [th e unit tests](https://github.com/PHPMailer/PHPMailer/blob/master/test/PHPMailerT est.php) a good reference for how to do various operations such as encryption.
If the documentation doesn't cover what you need, search the [many questions on Stack Overflow](http://stackoverflow.com/questions/tagged/phpmailer), and before you ask a question about "SMTP Error: Could not connect to SMTP host.", [read t he troubleshooting guide](https://github.com/PHPMailer/PHPMailer/wiki/Troublesho oting). If the documentation doesn't cover what you need, search the [many questions on Stack Overflow](http://stackoverflow.com/questions/tagged/phpmailer), and before you ask a question about "SMTP Error: Could not connect to SMTP host.", [read t he troubleshooting guide](https://github.com/PHPMailer/PHPMailer/wiki/Troublesho oting).
## Tests ## Tests
There is a PHPUnit test script in the [test](https://github.com/PHPMailer/PHPMai ler/tree/master/test/) folder. PHPMailer uses PHPUnit 4.8 - we would use 5.x but we need to run on PHP 5.5. [PHPMailer tests](https://github.com/PHPMailer/PHPMailer/tree/master/test/) use PHPUnit 9, with [a polyfill](https://github.com/Yoast/PHPUnit-Polyfills) to let 9-style tests run on older PHPUnit and PHP versions.
Build status: [![Build Status](https://travis-ci.org/PHPMailer/PHPMailer.svg)](h ttps://travis-ci.org/PHPMailer/PHPMailer) [![Test status](https://github.com/PHPMailer/PHPMailer/workflows/Tests/badge.svg )](https://github.com/PHPMailer/PHPMailer/actions)
If this isn't passing, is there something you can do to help? If this isn't passing, is there something you can do to help?
## Security ## Security
Please disclose any vulnerabilities found responsibly – report security issues t o the maintainers privately. Please disclose any vulnerabilities found responsibly – report security issues t o the maintainers privately.
See [SECURITY](https://github.com/PHPMailer/PHPMailer/tree/master/SECURITY.md) f or details on security issues. See [SECURITY](https://github.com/PHPMailer/PHPMailer/tree/master/SECURITY.md) a nd [PHPMailer's security advisories on GitHub](https://github.com/PHPMailer/PHPM ailer/security).
## Contributing ## Contributing
Please submit bug reports, suggestions and pull requests to the [GitHub issue tr acker](https://github.com/PHPMailer/PHPMailer/issues). Please submit bug reports, suggestions and pull requests to the [GitHub issue tr acker](https://github.com/PHPMailer/PHPMailer/issues).
We're particularly interested in fixing edge-cases, expanding test coverage and updating translations. We're particularly interested in fixing edge-cases, expanding test coverage and updating translations.
If you found a mistake in the docs, or want to add something, go ahead and amend the wiki - anyone can edit it. If you found a mistake in the docs, or want to add something, go ahead and amend the wiki anyone can edit it.
If you have git clones from prior to the move to the PHPMailer GitHub organisati on, you'll need to update any remote URLs referencing the old GitHub location wi th a command like this from within your clone: If you have git clones from prior to the move to the PHPMailer GitHub organisati on, you'll need to update any remote URLs referencing the old GitHub location wi th a command like this from within your clone:
```sh ```sh
git remote set-url upstream https://github.com/PHPMailer/PHPMailer.git git remote set-url upstream https://github.com/PHPMailer/PHPMailer.git
``` ```
Please *don't* use the SourceForge or Google Code projects any more; they are ob solete and no longer maintained. Please *don't* use the SourceForge or Google Code projects any more; they are ob solete and no longer maintained.
## Sponsorship ## Sponsorship
Development time and resources for PHPMailer are provided by [Smartmessages.net] (https://info.smartmessages.net/), a powerful email marketing system. Development time and resources for PHPMailer are provided by [Smartmessages.net] (https://info.smartmessages.net/), the world's only privacy-first email marketi ng system.
<a href="https://info.smartmessages.net/"><img src="https://www.smartmessages.ne t/img/smartmessages-logo.svg" width="250" height="28" alt="Smartmessages email m arketing"></a> <a href="https://info.smartmessages.net/"><img src="https://www.smartmessages.ne t/img/smartmessages-logo.svg" width="550" alt="Smartmessages.net privacy-first e mail marketing logo"></a>
Other contributions are gladly received, whether in beer 🍺, T-shirts 👕, Amazon w ishlist raids, or cold, hard cash 💰. If you'd like to donate to say "thank you" to maintainers or contributors, please contact them through individual profile p ages via [the contributors page](https://github.com/PHPMailer/PHPMailer/graphs/c ontributors). Contributions are very welcome, whether in beer 🍺, T-shirts 👕, or cold, hard cas h 💰. Sponsorship through GitHub is a simple and convenient way to say "thank you " to PHPMailer's maintainers and contributors – just click the "Sponsor" button [on the project page](https://github.com/PHPMailer/PHPMailer).
## Changelog ## Changelog
See [changelog](changelog.md). See [changelog](changelog.md).
## History ## History
- PHPMailer was originally written in 2001 by Brent R. Matzelle as a [SourceForg e project](http://sourceforge.net/projects/phpmailer/). - PHPMailer was originally written in 2001 by Brent R. Matzelle as a [SourceForg e project](http://sourceforge.net/projects/phpmailer/).
- Marcus Bointon (coolbru on SF) and Andy Prevost (codeworxtech) took over the p roject in 2004. - [Marcus Bointon](https://github.com/Synchro) (`coolbru` on SF) and Andy Prevos t (`codeworxtech`) took over the project in 2004.
- Became an Apache incubator project on Google Code in 2010, managed by Jim Jagi elski. - Became an Apache incubator project on Google Code in 2010, managed by Jim Jagi elski.
- Marcus created his fork on [GitHub](https://github.com/Synchro/PHPMailer) in 2 008. - Marcus created [his fork on GitHub](https://github.com/Synchro/PHPMailer) in 2 008.
- Jim and Marcus decide to join forces and use GitHub as the canonical and offic ial repo for PHPMailer in 2013. - Jim and Marcus decide to join forces and use GitHub as the canonical and offic ial repo for PHPMailer in 2013.
- PHPMailer moves to the [PHPMailer organisation](https://github.com/PHPMailer) on GitHub in 2013. - PHPMailer moves to [the PHPMailer organisation](https://github.com/PHPMailer) on GitHub in 2013.
### What's changed since moving from SourceForge? ### What's changed since moving from SourceForge?
- Official successor to the SourceForge and Google Code projects. - Official successor to the SourceForge and Google Code projects.
- Test suite. - Test suite.
- Continuous integration with Travis-CI. - Continuous integration with Github Actions.
- Composer support. - Composer support.
- Public development. - Public development.
- Additional languages and language strings. - Additional languages and language strings.
- CRAM-MD5 authentication support. - CRAM-MD5 authentication support.
- Preserves full repo history of authors, commits and branches from the original SourceForge project. - Preserves full repo history of authors, commits and branches from the original SourceForge project.
 End of changes. 41 change blocks. 
98 lines changed or deleted 95 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)