资源图标

预览 Self hosted form submit API 等待分享

没有下载许可


Sent API is a self-hosted API allowing you to submit forms from static HTML sites across the web. The API takes your form data and turns it into a nicely formatted email. It’s the ultimate solution for handling forms on static sites!

Simply add a custom ACTION attribute to your form pointing to your API url, and Sent will handle the form submission and send you the form data in a nice email (the submissions are also stored inside a database for easy management)

In the examples below, “yourdomain/sent” would in real situations be replaced with the URL pointing to your own API and “me@gmail.com” with the email address to which the data should be send.
Basic example

<form action="//yourdomain/sent/api/me@gmail.com">
<input type="text" name="name">
<input type="email" name="email">
<textarea name="message"></textarea>
<input type="submit" value="Send">
</form>
Advanced example

<form action="//yourdomain/sent/api/me@gmail.com">
<input type="hidden" name="_subject" value="">
<input type="hidden" name="_replyto" value="">
<input type="hidden" name="_after" value="">
<input type="hidden" name="_confirmation" value="">
<input type="text" name="name">
<input type="email" name="email">
<textarea name="message"></textarea>
<input type="submit" value="Send">
</form>
Validation Example

<form action="//yourdomain/sent/api/me@gmail.com">
<input type="hidden" name="_valid[name]" value="">
<input type="hidden" name="_valid" value="">
<input type="hidden" name="_valid[message]" value="">
<input type="text" name="name">
<input type="email" name="email">
<textarea name="message"></textarea>
<input type="submit" value="Send">
</form>
[SIZE=4][B]Sent API features[/B][/SIZE]

[LIST]
[*]1 minutes setup using the easy install script
[*]Form field validation
[*]Form submission using regular email address OR email ID (to hide your email address in the API url)
[*]Handles file uploads with a breeze (adds them as attachment and optionally stores them on your server)
[*]HTML and/or text emails
[*]Custom confirmation messages
[*]SPAM detection (using a custom SPAM words and/or phrases)
[*]SPAM detection using a honey pot field
[*]Use as public OR private API
[*]Advanced options using custom hidden fields
[*]Easy to use admin panel to track submissions, email ID’s and attachments
[*]Easy configuration using settings panel (part of the admin area)
[/LIST]
[SIZE=4][B]API Requirements[/B][/SIZE]

[LIST]
[*]Apache2 server
[*]PHP 5.1.6+
[*]MySQL (mysqli support)
[*](Windows/IIS is experimental)
[*]Server capable of sending mail (i.e. sendmail) OR
[*]Access to a STMP server (ie gmail or your own server)
[/LIST]
[SIZE=3][B]CHANGE LOG[/B][/SIZE]


2014-14-12 (v1.2)
- feature: dynamic replete field values
- feature: optional debugging for sending emails

2014-05-04 (v1.3)
- feature: added CC and BCC fields

[IMG]https://cdnk.ziycdn.com/ossyun/img/php-scripts/687474703a2f2f6368696c6c796f72616e67652e636f6d2f77702d636f6e74656e742f7468656d65732f6173706563742f6173736574732f696d616765732f747769747465722e706e677356482.jpg[/IMG] [IMG]https://cdnk.ziycdn.com/ossyun/img/php-scripts/687474703a2f2f6368696c6c796f72616e67652e636f6d2f77702d636f6e74656e742f7468656d65732f6173706563742f6173736574732f696d616765732f626c6f672e706e677356482.jpg[/IMG]
[IMG]https://cdnk.ziycdn.com/ossyun/img/php-scripts/687474703a2f2f6368696c6c796f72616e67652e636f6d2f77702d636f6e74656e742f7468656d65732f6173706563742f6173736574732f696d616765732f63635f737570706f72742e706e677356482.jpg[/IMG]
作者
0daydown
下载
0
首次发布
最后更新
评分
0.00 星 0 星

来自0daydown的更多资源

顶部 底部