By : chilly_orange Published On Friday, April 04, 2014, 20:58 In PHP Scripts
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.
<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>
<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>
<form action="//yourdomain/sent/api/me@gmail.com">
<input type="hidden" name="_valid[name]" value="">
<input type="hidden" name="_valid[email]" 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>
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
|
![]() |