megaads/laravel-mailservice 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

megaads/laravel-mailservice

Composer 安装命令:

composer require megaads/laravel-mailservice

包简介

This package support call to api for sent email

README 文档

README

Installation & Configuration

composer require megaads/laravel-mailservice

After require module success, register module on config app.

Megaads\Laravelmailservice\LaravelmailserviceServiceProvider::class

If using lumen, register class module on bootstrap/app.php. Then add some param config to env file

EMAIL_SERVICE_URL=
EMAIL_SERVICE_USER=
EMAIL_SERVICE_PASSWORD=

Using

On constructor function, declare email service.

$this->emailService = $this->app->make('sendEmailService');

Create send options email like below

$options = [
    'to' => 'email1, email2, email3' // if not service using group param
    'group' => 'technical', // if not service using to params
    'content' => 'Hello World', // text string or laravel view html render
    'subject' => 'Send test email',
    'name' => 'Joe Smith',
]

Finally call service to send email and waiting for result.

$this->emailService->sendMail($options);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-12-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固