peehaa/mailgrab
Composer 安装命令:
composer create-project peehaa/mailgrab
包简介
Self contained mail catcher for debugging purposes
README 文档
README
Catch-all SMTP server for local debugging purposes.
This SMTP server catches all e-mail being sent through it and provides an interface to inspect the e-mails.
Note: this SMTP server is meant to be run locally. As such several security considerations (e.g. SMTP transaction delays) have been omitted by design. Never run this project as a public service.
Project status
This project is currently working towards a first stable release version.
The master branch of this project will always be in a functioning state and will always point to the last release.
All active development should be based off the v0.4.0 branch.
Current limitations
- Currently the project only supports unauthenticated smtp requests (without
AUTHcommand) - No persistent storage
- Because we currently only support in-memory storage the project may run out of memory when handling a lot of mails or mails with a lot attachments
Requirements
- PHP 7.1
Installation
Composer
composer create-project peehaa/mailgrab
Phar
Download the latest phar file from the releases page.
Usage
Composer
./bin/mailgrab will start MailGrab using the default configuration:
- HTTP port: 9000
- SMTP port: 9025
See ./bin/mailgrab --help for more configuration options
Once the MailGrab server is started you can point your browser to http://localhost:9000 to access the webinterface.
If you send a mail to the server over port 9025 it will automatically be displayed in the webinterface.
There are example mail scripts available under ./examples (e.g. php examples/full-test.php) which you can run to test the functionality.
Phar
/path/to/mailgrab.phar will start MailGrab using the default configuration:
- HTTP port: 9000
- SMTP port: 9025
See /path/to/mailgrab.phar --help for more configuration options
Build and development
NPM
To get started run npm install.
An NPM build script is provided and can be used by running npm run build in the project root.
Building phars
Currently all active development has to be based off the v0.4.0 branch.
If you want to build a phar you can run the build script located at ./bin/build which will create a new build in the ./build directory.
peehaa/mailgrab 适用场景与选型建议
peehaa/mailgrab 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 31 次下载、GitHub Stars 达 94, 最近一次更新时间为 2018 年 04 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 peehaa/mailgrab 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 peehaa/mailgrab 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 94
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-14