Download the PHP package lithemod/mail without Composer
On this page you can find all versions of the php package lithemod/mail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lithemod/mail
More information about lithemod/mail
Files in lithemod/mail
Package mail
Short Description Email sending package based on PHPMailer, simplifying the process of sending SMTP emails in PHP applications. It offers integration with environment variables using the lithemodules/support-env package, ensuring secure and flexible configuration.
License MIT
Informations about the package mail
Lithe Mail
A package that simplifies SMTP email sending in PHP applications, providing flexible integration with environment variables for easy configuration.
Installation
You can install the package via Composer. Run the following command in your terminal:
Make sure the environment variable package is properly configured, as support-mail
relies on these settings.
Usage
Here’s a comprehensive guide on how to use the package to send emails:
1. Setting Up Environment Variables
Create a .env
file in the root of your project and define your email settings:
2. Sending a Simple Text Email
3. Sending an HTML Email
4. Adding CC and BCC Recipients
You can add CC and BCC recipients to your emails using the following methods:
Adding CC
Adding BCC
5. Setting Reply-To Address
You can set a reply-to address using the replyTo
method:
6. Attaching Files
To attach files to your email, use the attach
method:
7. Adding Custom Headers
You can add custom headers to your email as follows:
Requirements
- PHP 7.4 or higher
- Environment variables configured in the
.env
file
License
This project is licensed under the MIT License. See the LICENSE file for details.