Download the PHP package bjthecod3r/laravel-zeptomail without Composer

On this page you can find all versions of the php package bjthecod3r/laravel-zeptomail. 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 laravel-zeptomail

Laravel ZeptoMail

A ZeptoMail mail driver for Laravel. Register zeptomail as a mailer and everything you already write — Mail::to()->send(), Mailables, notifications, queued mail — goes out over the Zoho ZeptoMail API.

Highlights

Requirements

Installation

The service provider is auto-discovered. Publishing the config is optional:

Add the mailer to config/mail.php:

Then set your credentials in .env:

ZEPTOMAIL_TOKEN is the Send Mail Token from your ZeptoMail Mail Agent (Mail Agents → your agent → Setup Info → API). Paste it with or without the leading Zoho-enczapikey — the transport normalises either form.

Make sure the from address in config/mail.php is on a domain you have verified in ZeptoMail, or the API will reject the send.

Regions

ZeptoMail runs separate data centres, and your token only works against the one your account lives in. Set ZEPTOMAIL_REGION to match:

ZEPTOMAIL_REGION Data centre API host
com (default) United States / global api.zeptomail.com
eu Europe api.zeptomail.eu
in India api.zeptomail.in
com.au Australia api.zeptomail.com.au
com.cn China api.zeptomail.com.cn
jp Japan api.zeptomail.jp
ca Canada api.zeptomail.ca
sa Saudi Arabia api.zeptomail.sa

The matching Zoho domains (zoho.eu, zohocloud.ca, …) are accepted as aliases.

Configuration

Everything in config/zeptomail.php:

Leave track_opens and track_clicks unset to send no flag at all and let your Mail Agent's own settings decide.

Retries cover connection failures only, and retry_times of 1 means a single attempt with no retry. ZeptoMail's send endpoint is not idempotent, so retrying a request the server may already have accepted would deliver the message twice — raise it deliberately.

Sending mail

There is no ZeptoMail-specific API to learn for ordinary mail:

Attachments and embedded images work as they do elsewhere in Laravel. Attachments become ZeptoMail attachments; anything embedded in a Blade view with $message->embed(...) becomes an inline_images entry, so it renders in the body instead of arriving as a download.

Per-message options

ZeptoMail-specific options are set on the Symfony message, so they work anywhere Laravel hands it to you. In a Mailable, that is the using argument of the envelope:

Method ZeptoMail field
template(string $key) template_key
templateAlias(string $alias) template_alias
mergeInfo(array $info) merge_info
clientReference(string $reference) client_reference
bounceAddress(string $address) bounce_address
trackOpens(bool $track = true) track_opens
trackClicks(bool $track = true) track_clicks

These are carried as X-ZeptoMail-* headers and stripped before the request is built, so they never reach the recipient. Any other custom header you set is forwarded to ZeptoMail as mime_headers.

Sending with a ZeptoMail template

Point a Mailable at a template and ZeptoMail supplies the subject and body:

The package posts to ZeptoMail's template endpoint and omits the body, which the template would discard anyway. Your Mailable still needs a content() method to satisfy Laravel, but its output is not sent. templateAlias() works the same way if you address templates by alias.

Several Mail Agents or regions

Any option can be set per mailer, falling back to config/zeptomail.php:

Handling failures

A rejected or unreachable send throws ZeptoMailTransportException, which extends Symfony's TransportException. Laravel treats it like any other mail failure — queued mail retries, and Mail::send() throws:

The message already folds in ZeptoMail's per-field errors, so a bad recipient reads as:

On success, ZeptoMail's request ID is recorded as the message ID, which is what you quote when tracing a send in the ZeptoMail dashboard:

Misconfiguration is caught when the mailer is built, not at send time: a missing token or an unrecognised region throws InvalidConfigurationException, naming the accepted values.

Testing

Mail::fake() works as always, intercepting before the transport runs:

To assert on what actually reaches ZeptoMail, fake the HTTP layer instead:

Contributing

See CONTRIBUTING.md.

Credits

This package began as a fork of zohomail/laravel-zeptomail by Zoho Corporation, and has since been rewritten in full.

ZeptoMail and Zoho are trademarks of Zoho Corporation. This package is not affiliated with, endorsed by, or sponsored by Zoho.

License

MIT. See LICENSE.


All versions of laravel-zeptomail with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
illuminate/http Version ^12.0|^13.0
illuminate/mail Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
symfony/mailer Version ^7.2|^8.0
symfony/mime Version ^7.2|^8.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 bjthecod3r/laravel-zeptomail contains the following files

Loading the files please wait ...