prezent/ink-bundle
Composer 安装命令:
composer require prezent/ink-bundle
包简介
Easy responsive e-mails using Foundation and Inky
README 文档
README
Easy responsive e-emails using Foundation and Inky
namespace AppBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller class AppController extends Controller { public function emailAction() { $message = $this->get('prezent_ink.factory')->getMessage('AppBundle:Mail:hello.eml.twig', [ 'user' => $this->getUser(), ]); $message ->setFrom('noreply@example.org') ->setTo('john.doe@example.org') ; $this->get('mailer')->send($message); } }
{% extends 'PrezentInkBundle::base.eml.twig' %}
{% block stylesheets %}
<link rel="stylesheet" href="@AppBundle/Resources/public/css/email.css" />
{% endblock %}
{% block subject %}Hello {{ user.username }}{% endblock %}
{% block body_text %}
Hello {{ user.username }},
Nice to meet you!
{% endblock %}
{% block body_html %}
<container>
<h1>Hello {{ user.username }},</h1>
<spacer size="16"></spacer>
<callout>Nice to meet you!</callout>
</container>
{% endblock %}
The documentation can be found in Resources/doc
统计信息
- 总下载量: 12.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-16