I updated a site with "Composer update --with-dependencies" and encountered the following problem:
User warning: The following module is missing from the file system: phpmailer in drupal_get_filename()
Then I ran: composer require drupal/phpmailer.
Using version ^3.0@beta for drupal/phpmailer ./composer.json has been updated
Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Generating autoload files
But the Status Report still showed that phpmailer module was missing.
So I attempted running "drush en phpmailer -y"
And it returned:
phpmailer was not found. [warning] The following projects provide some or all of the extensions not [ok] found: phpmailer Would you like to download them? (y/n): y This codebase is assembled with Composer instead of Drush. Use [error] `composer update` and `composer require` instead of `drush pm-updatecode` and `drush pm-download`. You may override this error by using the --pm-force option. phpmailer was not found. [warning] Unable to download some or all of the extensions. [warning] There were no extensions that could be enabled. [ok]
What can I do to fix this?