PHPMailer is a fully-featured email creation and transport class for PHP which allows you to send email via SMTP. Visit PHPMailer’s GitHub page for further details on what it has to offer.
Installing PHPMailer on a shared server
View the following article for instructions on installing on a shared server.
Installing PHPMailer on a VPS or Dedicated Server
View the following article for instructions on installing on a VPS or Dedicated Server using Composer.
Important note about bulk email
Bulk email of any kind sent from a DreamHost account is subject to the DreamHost spam policy which is part of the terms of service. Please read those pages along with SMTP quota to ensure you’re not in violation of any of these policies.
Allowing GMAIL to send from your mail application
If you're using your GMAIL address to send via SMTP, you must first allow your application access to your GMAIL address. If you do not do this, your email will not authenticate and not send. View the following article for details: