enabling 2-factor authentication and add an app password for Drupal
did not help.
- 465 TCP port on server is opened
- SMTP module is active.
but it still says :
Unable to send email. Contact the site administrator if the problem persists.
SMTP module Project page says:
On a weekly basis we have support requests all on the same issue, so please SEARCH before creating an issue, and before that check which version of PHPMailer you're using. Versions higher than 2.2.1 are NOT SUPPORTED.
I tried to install version 2.2.1 but now composer says:
Could not find package 2.2.1 at any version for your minimum-stability (stable). Check the package spelling or your
It can sendmails
installing Mail System module and chosing smtp module as sender module then enabling 2-factor authentication and add an app password for Drupal worked after Access is enabled for less secure apps.
but I couldn't find a way to stop getting some errors
RuntimeException: Failed to start the session because headers have already been sent by "/opt/bitnami/apps/drupal/htdocs/modules/smtp/src/PHPMailer/SMTP.php" at line 809. in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (line 144 of /opt/bitnami/apps/drupal/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php).
smtp module writes error messages on page even I choose "None" in Error messages to display
SMTP -> get_lines(): $data was ""
SMTP -> FROM SERVER:221 2.0.0 closing connection ll9sm29269490wjc.29 - gsmtp
The website encountered an unexpected error. Please try again later.