diff --git a/README.md b/README.md index 86eccdd1..11d7b60d 100644 --- a/README.md +++ b/README.md @@ -50,16 +50,28 @@ or run composer require phpmailer/phpmailer ``` -PHPMailer declares the namespace `PHPMailer\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`. -Alternatively, if you're not using composer, copy the contents of the PHPMailer folder into one of the `include_path` directories specified in your PHP configuration and load each one manually. +Alternatively, if you're not using composer, copy the contents of the PHPMailer folder into one of the `include_path` directories specified in your PHP configuration and load each class file manually: -If you don't speak git or just want a tarball, click the 'zip' button on the right of the project page in GitHub. +```php +SMTPDebug = 2; // Enable verbose debug output