Download the PHP package mailersend/mailersend without Composer
On this page you can find all versions of the php package mailersend/mailersend. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mailersend/mailersend
More information about mailersend/mailersend
Files in mailersend/mailersend
Package mailersend
Short Description MailerSend PHP SDK
License MIT
Homepage https://github.com/mailersend/mailersend-php
Informations about the package mailersend
MailerSend PHP SDK
Table of Contents
- Installation
- Usage
- Email API
- Send an email
- Add CC, BCC recipients
- Send a template-based email
- Personalization
- Send an email with attachment
- Send a scheduled message
- Send email with precedence bulk header
- Send email with custom headers
- Bulk emails API
- Send bulk email
- Get bulk email status
- Inbound routing
- Get a list of inbound routes
- Get a single inbound route
- Add an inbound route
- Update an inbound route
- Delete an inbound route
- Activity API
- Get a list of activities
- Get a single activity
- Analytics API
- Get activity data by date
- Opens by country
- Opens by user-agent
- Opens by reading environment
- Domains API
- Get a list of domains
- Get domain
- Add a domain
- Delete domain
- Get a list of recipients per domain
- Update domain settings
- Verify a domain
- Get DNS records
- Messages API
- Get a list of messages
- Get info on a message
- Scheduled messages API
- Get a list of scheduled messages
- Get a single scheduled message
- Delete a scheduled message
- Tokens API
- Get all tokens
- Find a token
- Create a token
- Change a token name
- Update token
- Delete token
- Recipients API
- Get a list of recipients
- Get single recipient
- Delete recipient
- Add recipients to a suppression list
- Delete recipients from a suppression list
- Get recipients from a suppression list
- Webhooks API
- Get a list of webhooks
- Get webhook
- Create webhook
- Update webhook
- Delete webhook
- Templates API
- Get a list of templates
- Get a single template
- Delete a template
- Email Verification API
- Get all email verification lists
- Get an email verification list
- Create an email verification list
- Verify an email list
- Get email verification list results
- SMS API
- Send an sms
- Personalization
- SMS phone number API
- Get a list of sms phone numbers
- Get an SMS phone number
- Update a single SMS phone number
- Delete an SMS phone number
- SMS messages API
- Get a list of SMS messages
- Get an SMS message
- SMS Activity API
- Get a list of SMS activities
- SMS Recipients API
- Get a list of SMS recipients
- Get an SMS recipient
- Update a single SMS recipient
- SMS webhooks API
- Get a list of SMS webhooks
- Get a single SMS webhook
- Create an SMS webhook
- Update a single SMS webhook
- SMS inbound routing API
- Get a list of SMS inbound routes
- Get a single SMS inbound route
- Add an SMS inbound route
- Update an inbound route
- Delete an SMS inbound route
- Sender Identities
- Get a list of Sender Identities
- Get a single Sender Identity
- Get a single Sender Identity by email
- Add a Sender_Identity
- Update a Sender Identity
- Update a Sender Identity by email
- Delete a Sender Identity
- Delete a Sender Identity by email
- SMTP Users
- Get a list of SMTP Users
- Get a single SMTP User
- Add SMTP User
- Update SMTP User
- Delete SMTP User
- Users
- Get a list of Users
- Get a single User
- Add a User
- Update a User
- Delete a User
- Get a list of Invites
- Get a single Invite
- Resend an Invite
- Cancel an Invite
- Other endpoints
- Get API quota
- Email API
- Debugging validation errors
- Testing
- Support and Feedback
- License
Installation
Requirements
- PHP 7.4
- PSR-7 and PSR-18 based HTTP adapter
- An API Key from mailersend.com
Setup
This library, after version v0.22.0 is not compatible with Laravel 8.0 or lower. Please use older versions of SDK, or update your Laravel version.
This library is built atop of PSR-7 and PSR-18. You will need to install some implementations for those interfaces.
After that you can install the SDK.
Finally, add an environment variable called MAILERSEND_API_KEY
with the appropriate API key.
Optionally, although not recommended, you can manually add the API key when instantiating the MailerSend
class, like so:
Usage
Send an email
HTML content is not required. You still can send an email with Text only.
Add CC, BCC recipients
Send an email with CC and BCC.
Send a template-based email
Advanced personalization
Send email with attachment
Send a scheduled message
Send email with precedence bulk header
Send an email with tracking
Send an email with custom headers
Bulk email API
Send bulk email
Get bulk email status
Inbound routing
Get a list of inbound routes
Get a single inbound route
Add an inbound route
Example using only classes:
Example using both classes and arrays:
Example using only arrays:
Update an inbound route
The examples on building the Inbound
object portrayed in the 'Add an inbound route' also apply in here.
Delete an inbound route
Activity
Get a list of activities
Get a single activity
Analytics
Get activity data by date
Opens by country
Opens by user-agent
Opens by reading environment
Domains
Get a list of domains
Get domain
Add a domain
Delete domain
Get a list of recipients per domain
Update domain settings
Here you can set as many properties as you need, one or multiple.
Verify a domain
Get DNS records
Messages
Get a list of messages
Get info on a message
Scheduled Messages
Get a list of scheduled messages
Get a single scheduled message
Delete a scheduled message
Tokens
Get all tokens
Find a token
Create a token
Because of security reasons, we only allow access token appearance once during creation. In order to see the access token created you can do:
Change a token name
Update token
Delete Token
Recipients
Get a list of recipients
Get single recipient
Delete recipient
Add recipients to a suppression list
Blocklist
Hard Bounces
Spam Complaints
Unsubscribes
Delete recipients from a suppression list
Blocklist
Hard Bounces
Spam Complaints
Unsubscribes
On Hold List
Get recipients from a suppression list
Blocklist
Hard Bounces
Spam Complaints
Unsubscribes
On Hold List
Webhooks
Get a list of webhooks
Get webhook
Create webhook
Update webhook
Delete webhook
If, at the moment, some endpoint is not available, please use cURL
and other available tools to access it. Refer to official API docs for more info.
Templates
Get a list of templates
Get a single template
Delete a template
Email Verification
Get all email verification lists
Get an email verification list
Create an email verification list
Verify an email list
Get email verification list results
SMS
Send SMS
Personalization
SMS phone numbers
Get a list of SMS phone numbers
Get an SMS phone number
Update a single SMS phone number
Delete an SMS phone number
SMS messages API
Get a list of SMS messages
Get an SMS message
SMS activity API
Get a list of SMS activities
SMS recipients API
Get a list of SMS recipients
Get an SMS recipient
Update a single SMS recipient
SMS webhooks API
Get a list of SMS webhooks
Get a single SMS webhook
Create a single SMS webhook
Update a single SMS webhook
SMS inbound routing API
Get a list of SMS inbound routes
Get a single SMS inbound route
Add an SMS inbound route
Update an inbound route
Delete an inbound route
Sender identities
Get a list of Sender Identities
Get a single Sender Identity
Get a single Sender Identity by email
Add a Sender Identity
Example using only classes:
Example using all options:
Update a Sender Identity
The examples on building the Sender Identity
object portrayed in the 'Add a Sender Identity' also apply in here.
Update a Sender Identity by email
The examples on building the Sender Identity
object portrayed in the 'Add a Sender Identity' also apply in here.
Delete a Sender Identity
Delete a Sender Identity by email
SMTP Users
Get a list of SMTP Users
Get a single SMTP User
Add SMTP User
Update SMTP User
The examples on building the SMTP User
object portrayed in the 'Add SMTP User' also apply in here.
Delete SMTP User
Users
Get a list of Users
Get a single User
Add a User
Example using only classes:
Example using all options:
Update a User
The examples on building the User
object portrayed in the 'Add a User' also apply in here.
Delete a User
<a name="get-a-list-of-invites>
Get a list of Invites
Get a single Invite
Resend an Invite
<a name="cancel-an-invite>
Cancel an Invite
Other endpoints
Get API quota
Debugging validation errors
Testing
Support and Feedback
In case you find any bugs, submit an issue directly here in GitHub.
You are welcome to create SDK for any other programming language.
If you have any troubles using our API or SDK free to contact our support by email [email protected]
The official documentation is at https://developers.mailersend.com
License
The MIT License (MIT)
All versions of mailersend with dependencies
php Version ^7.4|^8.0
php-http/client-common Version ^2.2
php-http/discovery Version ^1.9
php-http/httplug Version ^2.1
psr/http-client-implementation Version ^1.0
psr/http-message Version ^1.0 || ^2.0
illuminate/collections Version ^8.0 || ^9.0 || ^10.0 || ^11.0
beberlei/assert Version ^3.2
symfony/options-resolver Version ^4.0.15 || ~4.1.9 || ^4.2.1 || ^5.0 || ^6.0 || ^7.0