承接 mazi/mailtrap-driver 相关项目开发

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

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

mazi/mailtrap-driver

Composer 安装命令:

composer require mazi/mailtrap-driver

包简介

A Mailtrap email driver for Laravel.

README 文档

README

# Mailtrap Laravel Driver

This package provides a Mailtrap driver for Laravel, allowing you to send emails in your Laravel application via the Mailtrap service.

## Installation

You can install the package via composer:

composer require mazi/mailtrap-driver

Configuration

After installing the package, you need to add the service provider to the providers array in config/app.ph

<?php

'Mazi\MailtrapDriver\MailtrapServiceProvider',

?>

Then, in your .env file, set the MAIL_MAILER or MAIL_DRIVER (depending on your Laravel version) to mailtrap:

MAIL_MAILER_=_mailtrap

Also, add your Mailtrap API Token to your .env file:

MAILTRAP_API_TOKEN_=_your-mailtrap-api-token

<?php

Mail::to('test@example.com')->send(new TestMail());

?>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-30