| Línea 39... |
Línea 39... |
| 39 |
*Please* don't be tempted to do it yourself – if you don't use PHPMailer, there are many other excellent libraries that
|
39 |
*Please* don't be tempted to do it yourself – if you don't use PHPMailer, there are many other excellent libraries that
|
| 40 |
you should look at before rolling your own. Try [SwiftMailer](https://swiftmailer.symfony.com/)
|
40 |
you should look at before rolling your own. Try [SwiftMailer](https://swiftmailer.symfony.com/)
|
| 41 |
, [Laminas/Mail](https://docs.laminas.dev/laminas-mail/), [ZetaComponents](https://github.com/zetacomponents/Mail), etc.
|
41 |
, [Laminas/Mail](https://docs.laminas.dev/laminas-mail/), [ZetaComponents](https://github.com/zetacomponents/Mail), etc.
|
| Línea 42... |
Línea 42... |
| 42 |
|
42 |
|
| 43 |
## License
|
43 |
## License
|
| Línea 44... |
Línea 44... |
| 44 |
This software is distributed under the [LGPL 2.1](http://www.gnu.org/licenses/lgpl-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 distribution.
|
44 |
This software is distributed under the [LGPL 2.1](https://www.gnu.org/licenses/old-licenses/lgpl-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 distribution.
|
| 45 |
|
45 |
|
| Línea 46... |
Línea 46... |
| 46 |
## Installation & loading
|
46 |
## Installation & loading
|
| 47 |
PHPMailer is available on [Packagist](https://packagist.org/packages/phpmailer/phpmailer) (using semantic versioning), and installation via [Composer](https://getcomposer.org) is the recommended way to install PHPMailer. Just add this line to your `composer.json` file:
|
47 |
PHPMailer is available on [Packagist](https://packagist.org/packages/phpmailer/phpmailer) (using semantic versioning), and installation via [Composer](https://getcomposer.org) is the recommended way to install PHPMailer. Just add this line to your `composer.json` file:
|
| 48 |
|
48 |
|
| Línea 49... |
Línea 49... |
| 49 |
```json
|
49 |
```json
|
| Línea 50... |
Línea 50... |
| 50 |
"phpmailer/phpmailer": "^6.9.1"
|
50 |
"phpmailer/phpmailer": "^6.9.2"
|
| Línea 142... |
Línea 142... |
| 142 |
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 mailing list example](https://github.com/PHPMailer/PHPMailer/blob/master/examples/mailing_list.phps) for further guidance.
|
142 |
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 mailing list example](https://github.com/PHPMailer/PHPMailer/blob/master/examples/mailing_list.phps) for further guidance.
|
| Línea 143... |
Línea 143... |
| 143 |
|
143 |
|
| Línea 144... |
Línea 144... |
| 144 |
That's it. You should now be ready to use PHPMailer!
|
144 |
That's it. You should now be ready to use PHPMailer!
|
| 145 |
|
145 |
|
| Línea 146... |
Línea 146... |
| 146 |
## Localization
|
146 |
## Localization
|
| 147 |
PHPMailer defaults to English, but in the [language](https://github.com/PHPMailer/PHPMailer/tree/master/language/) folder, you'll find many translations for PHPMailer 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 which one to use, like this:
|
147 |
PHPMailer defaults to English, but in the [language](https://github.com/PHPMailer/PHPMailer/tree/master/language/) folder, you'll find many translations for PHPMailer error messages that you may encounter. Their filenames contain [ISO 639-1](https://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 which one to use, like this:
|
| 148 |
|
148 |
|
| 149 |
```php
|
149 |
```php
|
| Línea 160... |
Línea 160... |
| 160 |
|
160 |
|
| Línea 161... |
Línea 161... |
| 161 |
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.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.
|
161 |
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.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.
|
| Línea 162... |
Línea 162... |
| 162 |
|
162 |
|
| Línea 163... |
Línea 163... |
| 163 |
Complete generated API documentation is [available online](https://phpmailer.github.io/PHPMailer/).
|
163 |
Complete generated API documentation is [available online](https://phpmailer.github.io/PHPMailer/).
|
| Línea 164... |
Línea 164... |
| 164 |
|
164 |
|
| 165 |
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 [the unit tests](https://github.com/PHPMailer/PHPMailer/blob/master/test/PHPMailerTest.php) a good reference for how to do various operations such as encryption.
|
165 |
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](https://www.phpdoc.org) installed. You may find [the unit tests](https://github.com/PHPMailer/PHPMailer/blob/master/test/PHPMailer/PHPMailerTest.php) a good reference for how to do various operations such as encryption.
|
| Línea 166... |
Línea 166... |
| 166 |
|
166 |
|
| Línea 211... |
Línea 211... |
| 211 |
|
211 |
|
| 212 |
## Changelog
|
212 |
## Changelog
|
| Línea 213... |
Línea 213... |
| 213 |
See [changelog](changelog.md).
|
213 |
See [changelog](changelog.md).
|
| 214 |
|
214 |
|
| 215 |
## History
|
215 |
## History
|
| 216 |
- PHPMailer was originally written in 2001 by Brent R. Matzelle as a [SourceForge project](http://sourceforge.net/projects/phpmailer/).
|
216 |
- PHPMailer was originally written in 2001 by Brent R. Matzelle as a [SourceForge project](https://sourceforge.net/projects/phpmailer/).
|
| 217 |
- [Marcus Bointon](https://github.com/Synchro) (`coolbru` on SF) and Andy Prevost (`codeworxtech`) took over the project in 2004.
|
217 |
- [Marcus Bointon](https://github.com/Synchro) (`coolbru` on SF) and Andy Prevost (`codeworxtech`) took over the project in 2004.
|
| 218 |
- Became an Apache incubator project on Google Code in 2010, managed by Jim Jagielski.
|
218 |
- Became an Apache incubator project on Google Code in 2010, managed by Jim Jagielski.
|
| 219 |
- Marcus created [his fork on GitHub](https://github.com/Synchro/PHPMailer) in 2008.
|
219 |
- Marcus created [his fork on GitHub](https://github.com/Synchro/PHPMailer) in 2008.
|