/
README
35 lines (28 loc) · 1.22 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
*
* CONFIGURATION:
*
Simply passing a form to this file is enough to properly send an email,
however certain fields must be present in the form in order for it to
work. The fields must be spelled and have the same exact casing as
shown below. Optional fields add further configuration options. Currently
the form only uses the $_POST method, however a simple tweak when calling
new FormMailer() can fix that if you wish to use $_GET.
**
* Required:
*
<input type="hidden" name="recipients" value="" />
// Comma-deliminated set of emails (ie: "bobsaget@email.com, joseph@smith.com")
<input type="hidden" name="subject" value="" />
// User or programmer entered subject line for the email (ie: "Contact Us Email")
<input type="text" name="email" value="" />
// Reply to address of the email (ie: "charles@schwabb.net")
**
* Optional:
*
<input type="hidden" name="redirect" value="" />
// Continuation path after form is successfully sent (ie: "/index.php" or "http://success.com")
<input type="hidden" name="autoRedirect" value="" />
// Integer value for # of seconds to wait before automatically redirecting (ie: "0" or "5")
// If this value is set to 0, the page will be immediately redirected upon success
*/