Pages Email app is a web-based email client designed and developed exclusively for Pages framework. It has a responsive design to work flawlessly across many devices. Please note that current version only includes the Inbox and Compose views. This is a work in progress and we're hoping to make this a complete jQuery plugin soon
In pages.email.js please replace the URL “http://pages.revox.io/json/emails.json” (Line #54) with your own end point URL which can return a JSON having a structure mentioned below. Then include the updated file below pages.js.
<script src="pages/js/pages.email.js"></script>
Use the following formate for emails
emails - (Array) List of all emails categorized by date
group - Date category
list - list of emails received for the day
id - unique ID to represent each email, should be an unique integer
subject - Subject line of the email
to - (Array) Recipients name list
body - Email body. HTML is allowed
time - Time email was sent
datetime - Date and time combined
from - Sender name
dp - Display picture of the sender
dpRetina - Retina version of the display picture of the sender
Sample JSON output
Markup
Inlcude the following HTML source in your file
Inbox view
Compose view
Replace <div class="email-opened">...</div> with the following for the compose view