youshido/mail
Composer 安装命令:
composer require youshido/mail
包简介
Symfony Budnle for Email templates, variables and attachments integration
README 文档
README
1. Basic config:
youshido_mail: config: from: test@test.com # default from for all emails emails: registration_success: # email config id subject: Welcome to our service #not necessary template: '@App/emails/register-success.html.twig' from: billing@test.com # optional From for this config personal_reminder: # email config id subject: Hi %name%, your reminder is here! template: '@App/emails/register-success.html.twig' from: billing@test.com # optional From for this config
2. Usage:
$mailer = $this->container->get('youshido.mailer'); $mailer->sendEmailWithId('registration_success', 'user@test.com', ['name' => 'Alex']); $mailer->sendEmailWithId('personal_reminder', 'user@test.com', ['name' => 'Alex']);
统计信息
- 总下载量: 1.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-25