The SMTP module enables your Drupal CMS to use your existing SMTP based email delivery platform to send emails. This blog cover steps to configure the SMTP module for Drupal.
SMTP
Testing email functionality in Drupal is a common use case every developer encounters frequently. Setup a full-featured email system locally or using a 3rd party service for just testing emails may not be feasible always.
Mailhog is the best solution available for this scenario and the bonus point is that it works perfectly with Lando.
In one of my Drupal 8 work I needed to configure SMTP using swiftmailer Module. The module extends the basic mail sending functionality which is provided by Drupal by delegating all mail handling to Swift Mailer library. This library provides features, such as :