Download the PHP package iceithq/mail-php without Composer
On this page you can find all versions of the php package iceithq/mail-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package mail-php
Mail API Client (PHP)
A simple PHP class for sending emails (with optional attachments) through an API endpoint.
Designed under the namespace com\iceithq.
Installation
- Make sure you have Composer installed.
-
In your project, add this package to your
composer.jsonautoload section: -
Run:
- Require Composer’s autoloader in your project:
Usage
Basic Example
API
Create a new mail instance.
- – The base API endpoint (e.g. https://api.example.com).
Set the recipient email address.
- – Recipient’s email (string).
Attach a file or multiple files to the email.
- – Either a string (single file path) or an array of file paths.
Send the email request to the configured API.
- – Email subject (string).
- – Email body (string).
- Returns – The raw API response.
Notes
- By default, Authorization: Bearer is included in the request header.
- Replace $apiKey inside the class with your real API key or extend the class to pass it dynamically.
- Payload is sent as multipart/form-data so file uploads work correctly.
- Error handling is minimal right now. You may want to expand it for production use.
License
MIT
All versions of mail-php with dependencies
PHP Build Version
Package Version
No informations.
The package iceithq/mail-php contains the following files
Loading the files please wait ...