承接 madeinua/laravel-phpmailer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

madeinua/laravel-phpmailer

最新稳定版本:1.1

Composer 安装命令:

composer create-project madeinua/laravel-phpmailer

包简介

PHPMailer transport for Laravel

README 文档

README

About

This package provides a simple way to use PHPMailer with Laravel to handle sending emails.

Installation

You can install the package via composer:

composer require "madeinua/laravel-phpmailer"

or manually add the following to your composer.json file:

"madeinua/browser-console": "^1.0"

You also need to publish the service provider:

php artisan vendor:publish --provider="LaravelPHPMailer\PHPMailerServiceProvider" --tag="transporter-config"

or by adding the provider to the config/app.php file:

'providers' => [
    ...
    // Illuminate\Mail\MailServiceProvider::class,
    LaravelPHPMailer\PHPMailerServiceProvider::class,
],

Then in the config/mail.php, under mailers, you need to add a new entry:

'mailers' => [
    ...
    'phpmailer' => [
        'transport' => 'phpmailer'
    ]
],

Usage

When the package is installed and configured, all emails will be sent using PHPMailer:

Mail::to($request->user())
    ->cc($moreUsers)
    ->bcc($evenMoreUsers)
    ->send(new OrderShipped($order));

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-27