automad/mail
最新稳定版本:1.0.0
Composer 安装命令:
composer require automad/mail
包简介
This extension provides a basic wrapper for PHP's built-in mail function including basic human verification
关键字:
README 文档
README
The Mail extension provides a basic wrapper for the PHP function mail(), including optional human verification using a honeypot.
Markup
The basic markup requires the method call as well as a contact form.
Note that the names of the form fields must match the following example:
<@ Automad/Mail { to: @{ email } } @>
<form action="@{ url }" method="post">
<!-- The honeypot - this input will be hidden by the included CSS -->
<input type="text" name="human" value="">
<!-- The actual form fields and button -->
<input type="text" name="from" value="" placeholder="Your Email">
<input type="text" name="subject" value="" placeholder="Your Subject">
<textarea name="message" placeholder="Your Message"></textarea>
<button class="uk-button" type="submit">Send</button>
</form>
Options
The following options can be specified:
| Parameter | Description |
|---|---|
to |
The receiving email address |
error |
The message to be displayed on errors |
success |
The message to be displayed on success |
A markup with all options specified:
<@ Automad/Mail {
to: @{ email },
error: 'Error Message ...',
success: 'Success Message ...'
} @>
统计信息
- 总下载量: 810
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-05