定制 ebethus/laravel-elastic-email-driver 二次开发

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

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

ebethus/laravel-elastic-email-driver

Composer 安装命令:

composer require ebethus/laravel-elastic-email-driver

包简介

A Laravel Elastic Email Driver

README 文档

README

A Laravel mail driver for Elastic Email service.

Compatibility

  • Laravel: 9.x, 10.x, 11.x, 12.x
  • PHP: 8.0+

Installation

Install the package via Composer:

composer require ebethus/laravel-elastic-email-driver

Configuration

1. Add Elastic Email Credentials

Add the following configuration to your config/services.php:

'elastic_email' => [
    'key' => env('ELASTIC_KEY'),
    'account' => env('ELASTIC_ACCOUNT'),
],

2. Set Environment Variables

Add your Elastic Email credentials to your .env file:

ELASTIC_KEY=your-elastic-email-api-key
ELASTIC_ACCOUNT=your-elastic-email-account

3. Configure Mail Driver

For Laravel 9+, update your config/mail.php to add the Elastic Email mailer:

'mailers' => [
    // ... other mailers
    
    'elastic_email' => [
        'transport' => 'elastic_email',
    ],
],

Then set it as your default mailer in .env:

MAIL_MAILER=elastic_email

For older Laravel versions, set:

MAIL_DRIVER=elastic_email

Usage

This package integrates seamlessly with Laravel's mail system. Use Laravel's Mail facade as you normally would:

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

Mail::to('user@example.com')->send(new WelcomeEmail());

For more information on sending emails, refer to the Laravel Mail documentation.

License

This package is open-sourced software licensed under the MIT license.

Support

For issues or questions, please contact alberroteran@gmail.com.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固