Overview
This article describes general information about PHPMailer
Background
PHPMailer is a powerful library for creating and sending emails via SMTP in PHP. It supports a range of features like attachments, HTML formatting, and server-side validation. For more details, visit PHPMailer’s GitHub page.
How to install
You can install PHPMailer on either a shared or VPS/Dedicated server.
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.
Installing PHPMailer on a shared server
See this article for instructions on installing on a shared server.
Installing PHPMailer on a VPS or Dedicated Server
See this article for instructions on installing on a VPS or Dedicated Server using Composer.
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 or send. View this article for details.