Usage
Send Event Templates :: Template Types
The following templates are used in the Send Event Interface. Template selection follows the same control flow as the Event Retrieval Interface. For more information, please see the Template Types section in the manual.
- sendEventForm
- sendEventEmail
- sendEventComplete
- sendEventError
- emailHeader
- emailFooter
Send Event Templates :: Template Variables
The following template variables are specifc to the Send Event gateway. Those marked required are the necessary variables needed to complete a successful email. Sending events to multiple recipients is supported via space, comma, or semi-colon delimited addresses, however, the Send_Event_To_Name field is not allowed in this case. For more information, please see the Template Variables section.
- Send_Event_To_Name
- Send_Event_To_Email (required)
- Send_Event_From_Name
- Send_Event_From_Email (required)
- Send_Event_Subject
- Send_Event_Comments
- Send_Event_Captcha_Image (required)
- Send_Event_Captcha_Secret (required)
- Send_Event_Url
- Send_Event_Event
- Send_Event_Event_Link
Send Event :: States
- init: initial state. Uses sendEventForm template.
- preview(not yet supported): preview state is optional
- send: sends the email. Uses emailHeader, sendEventEmail, and emailFooter templates.
- complete: final end state. Uses sendEventComplete template.
- error: fatal error state. Uses sendEventError template.
Send Event :: Directives
- forward: attempt to move forward to the next state.
- back: attempt to move back to the previous state
- close: close session.
- new: return to init state
- state: returns the current state of the Send Event Interface
Sample sendEventForm Template
| sendEventForm Template |
|---|
<script type="text/javascript">
function dClose() {
document.sendEvent.directive.value = "close";
document.sendEvent.submit();
window.close();
}
function dForward() {
document.sendEvent.directive.value = "forward";
document.sendEvent.submit();
}
</script>
<div class="content">
<div class="scontent">
<h1>E-mail Event to a Friend</h1>
<div class="eventInfo">
<span class="eventName">%Event_Name%</span>
<span class="eventDate">%Event_Date_Time%</span>
<p class="eventDesc">%Event_Subject%</p>
</div>
%if 'Send_Event_Error' != ''%<br><div class="error">* %Send_Event_Error%</div> %endif%
<form class="sendFriend" name="sendEvent" action="%Send_Event_Url%" method="post">
<input name="directive" value="forward" type="hidden">
<span class="title">Send To</span>
<span class="field">
<input name="Send_Event_To_Email" value="%Send_Event_To_Email%" size="25">
<span class="instructs">(Separate multiple e-mails addresses with a comma.)</span>
</span>
<span class="title">From</span>
<span class="field"><input name="Send_Event_From_Email" value="%Send_Event_From_Email%" size="25"></span>
<span class="title">Personal Message (optional)</span>
<div class="field">
<textarea name="Send_Event_Comments" rows="5" cols="40">%Send_Event_Comments%</textarea>
</div>
<span class="title">Enter text as shown below</span>
<span class="field">
<input name="Send_Event_Captcha_Secret" size="20">
</span>
<span class="captcha">%Send_Event_Captcha_Image%</span>
<p class="instructs">This helps prevent automated abuse of this feature.</p>
<div class="submit">
<input value="Send" type="button" onclick="dForward()">
<input value="Cancel" type="button" onclick="dClose()">
</div>
</form>
</div>
</div>
|
Revised: July 07, 2009
