Download the PHP package misarji/ez-mail without Composer

On this page you can find all versions of the php package misarji/ez-mail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ez-mail

EzMail

Created by Keshav Mishra

Note that API calls are not currently unit-tested (although we have properly test them manually). Therefore, you are encouraged to test your API usage before going into production.

Introduction

EzMail is a module that integrates with various third-parties API to send mails. Integration is provided with the API of those services. It does not handle SMTP.

Please note that EzMail only supports Transactional services. Services for campaign marketing emails (like MailChimp or MailJet) are out-of-the scope of this module.

Here are the currently supported services:

Requirements

Installation

Add "misarji/ez-mail" to your composer.json file and update your dependencies. Enable EzMail in your application.config.php. To use one of the transport layers, see the documentation in the docs folder.

If you do not have a composer.json file in the root of your project, copy the contents below and put that into a file called composer.json and save it in the root of your project:

Then execute the following commands in a CLI:

Now you should have a vendor directory, including a misarji/ez-mail. In your bootstrap code, make sure you include the vendor/autoload.php file to properly load the EzMail module.

Amazon SES

If you want to use Amazon SES, you need to install the official AWS ZF 2 module. Please refer to the documentation of Amazon SES in the docs folder.

Documentation

Documentation for EzMail is splitted for each provider:

Cook-book

How to send an HTML email ?

Every email providers used in EzMail allow to send HTML emails. However, by default, if you set the mail's content using the setBody content, this content will be considered as the plain text version as shown below:

To send a HTML version, you must specify the body as a MimeMessage, and add the HTML version as a MIME part, as shown below:

For accessibility purposes, you should always provide both a text and HTML version of your mails.

How to configure HttpClient with http_options and http_adapter

By defaut the adapter is Zend\Http\Client\Adapter\Socket but you can override it with other adapter like this in your ez_mail.*.local.php

If you want to change some options of your adapter please refer to you adapter class in var $config here and override these in your ez_mail.*.local.php like this :

Which provider should I choose?

We won't answer you :-)! Each provider have their own set of features. You should carefully read each website to discover which one suit your needs the most.

However, for convenience purpose, we have wrapped a pricing table for each email provider!


All versions of ez-mail with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
zendframework/zend-mail Version ~2.0
zendframework/zend-http Version ~2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package misarji/ez-mail contains the following files

Loading the files please wait ....