定制 sohaibilyas/laravel-zeptomail 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sohaibilyas/laravel-zeptomail

Composer 安装命令:

composer require sohaibilyas/laravel-zeptomail

包简介

A ZeptoMail mail transport for Laravel.

README 文档

README

A Laravel mail transport for sending mail through Zoho ZeptoMail.

Installation

composer require sohaibilyas/laravel-zeptomail

Configuration

Add your ZeptoMail token to .env:

ZEPTOMAIL_TOKEN="Zoho-enczapikey your-token"
ZEPTOMAIL_HOST=api.zeptomail.com
ZEPTOMAIL_API_VERSION=v1.1

You may also pass only the raw token value. The transport will add the Zoho-enczapikey prefix automatically.

The package automatically registers a zeptomail Laravel mailer. Set it as your default mailer:

MAIL_MAILER=zeptomail
MAIL_FROM_ADDRESS=noreply@example.com
MAIL_FROM_NAME="${APP_NAME}"

Publishing the config file is optional. Use it only when you want the ZeptoMail package config in your app:

php artisan vendor:publish --tag=zeptomail-config

If you prefer to configure ZeptoMail inside Laravel's mail config instead, you may add a zeptomail entry to config/mail.php:

'mailers' => [
    'zeptomail' => [
        'transport' => 'zeptomail',
        'token' => env('ZEPTOMAIL_TOKEN'),
        'host' => env('ZEPTOMAIL_HOST', 'api.zeptomail.com'),
        'version' => env('ZEPTOMAIL_API_VERSION', 'v1.1'),
        'timeout' => env('ZEPTOMAIL_TIMEOUT', 30),
    ],
],

Usage

Use Laravel's mail API as usual:

use App\Mail\WelcomeMail;
use Illuminate\Support\Facades\Mail;

Mail::to('info@example.com')->send(new WelcomeMail);

The transport sends requests to:

https://api.zeptomail.com/v1.1/email

Testing

composer test

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固